You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Terrence Brannon <tb...@valueclick.com> on 2005/03/15 23:27:53 UTC

[users@httpd] URL with 2 question marks being truncated between access and rewrite stage

Something unusual is happening. The access log shows a url which
contains 
"?STRING=adf" (the fourth line down). The backslashes at 80 characters
are due to line-wrapping and are not a part of the actual query string

192.168.1.210 - - [15/Mar/2005:14:10:45 -0800] "GET
/redirect%3Fhost%3Dh0000007\
%3Bsize%3D%3Bt%3Dhtml%3Bc%3Dff%3Btarget_id%3D0%3Bvcuser%3Dtbrannon%3Bban
ner%3Da\
0015036%3Bvcurlpreserve%3Dhttp://www.networkd.com/cgi-bin/promo/domain-\
search?STRING=adfasdf&submit=%A1Busca%21&code=P13C370S502N0B75A1D645E000
0V100&r\
egOption=%2Fen_US%2Fpurchase-it%2Fview-your-order.jhtml HTTP/1.1" 302
251 "http\
://intra.q1.valueclick.com/stbui?banner=15036&t=html&vcuser=tbrannon"
"Mozilla/\
4.0 (compatible; MSIE 6.0; Windows NT 5.1)"


However, the rewrite log shows a URL truncated just before "?STRING=adf"
:

192.168.19.215 - - [15/Mar/2005:14:06:48 -0800]
[b1.q1.valueclick.com/sid#81147\
b4][rid#80eb854/initial] (3) split
uri=http://localhost:8981/redirect?host=h000\
0007;size=;t=html;c=ff;target_id=0;vcuser=tbrannon;banner=a0015036;vcurl
preserv\
e=http://www.networkd.com/cgi-bin/promo/domain-search -> uri=http://loc\
alhost:8981/redirect,
args=host=h0000007;size=;t=html;c=ff;target_id=0;vcuser=t\
brannon;banner=a0015036;vcurlpreserve=http://www.networkd.com/cgi-bin/p\
romo/domain-search


1/ What might cause a URL to be truncated between the time the request
is received and the mod_rewrite stage?

2/ What could I use to have a more verbose trace of what happens
throughout the life of a request. Changing LogLevel to debug did not
seem to yield much more information.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] URL with 2 question marks being truncated between access and rewrite stage

Posted by Noah <si...@onastick.net>.
On Tue, Mar 15, 2005 at 02:27:53PM -0800, Terrence Brannon wrote:
> Something unusual is happening. The access log shows a url which
> contains 
> "?STRING=adf" (the fourth line down). The backslashes at 80 characters
> are due to line-wrapping and are not a part of the actual query string
> 
> However, the rewrite log shows a URL truncated just before "?STRING=adf"
> :
> 
> 1/ What might cause a URL to be truncated between the time the request
> is received and the mod_rewrite stage?

It's not being truncated; the items after the '?' aren't part file being
requested, they're the query string. The items after the first question
mark are included because the '?' is URI escaped (%3F) in the request.

--n

-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org