|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[ curl-Bugs-3579813 ] HTTP GET through proxy passes '#anchor' part of the URL
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Wed, 24 Oct 2012 11:33:29 -0700
Bugs item #3579813, was opened at 2012-10-24 11:33
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
see following curl commands and netcat outputs of done requests (first without proxy, second one with localhost privoxy) - with proxy the '#anchor' part of the URL is passed through but without the proxy it is not. I am unsure about what the correct behaviour should be, but e.g. wget behaves the same with and without proxy.
$ curl -v -s -XGET 'http://127.0.0.1:10000/path?param=val#anchor'
$ netcat -lp 10000
--- $ curl -v -s --proxy http://127.0.0.1:8080 -XGET 'http://127.0.0.1:10000/path?param=val#anchor' * About to connect() to proxy 127.0.0.1 port 8080 (#0) * Trying 127.0.0.1... * connected * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > GET http://127.0.0.1:10000/path?param=val#anchor HTTP/1.1 > User-Agent: curl/7.28.0 > Host: 127.0.0.1:10000 > Accept: */* > Proxy-Connection: Keep-Alive >@ ^C $ netcat -lp 10000 GET /path?param=val#anchor HTTP/1.1 User-Agent: curl/7.28.0 Host: 127.0.0.1:10000 Accept: */* --- $ wget -qO - 'http://127.0.0.1:10000/path?param=val#anchor' ^C $ netcat -lp 10000 GET /path?param=val HTTP/1.1 User-Agent: Wget/ (linux-gnu) Accept: */* Host: 127.0.0.1:10000 Connection: Keep-Alive --- $ wget --proxy http://127.0.0.1:8080 -qO - 'http://127.0.0.1:10000/path?param=val#anchor' ^C $ netcat -lp 10000 GET /path?param=val HTTP/1.1 User-Agent: Wget/ (linux-gnu) Accept: */* Host: 127.0.0.1:10000 Connection: Keep-Alive I have latest curl from gentoo tree. $ curl -V curl 7.28.0 (x86_64-pc-linux-gnu) libcurl/7.28.0 OpenSSL/1.0.1c zlib/1.2.7 libidn/1.25 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smtp smtps telnet tftp Features: AsynchDNS IDN Largefile NTLM NTLM_WB SSL libz TLS-SRP Regards Jiri ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100976&aid=3579813&group_id=976Received on 2012-10-24 These mail archives are generated by hypermail. |
Page updated January 05, 2012.
web site info