cURL / Mailing Lists / curl-users / Single Mail

curl-users

question on "--request":can I remove the " /" after the request?

From: FUN TOES <funtest_at_operamail.com>
Date: Mon, 01 Mar 2004 08:20:44 +0100

curl -v0 --request "GET http://www.google.com/search?hl=en" targetproxy.
I found the http request sent like this:
> GET http://www.google.com/search?hl=en / HTTP/1.0
Can I remove the " /" before " HTTP/1.0"?
(some httpproxy will give error for it).

I step into url.c with gdb,but I can't find where the " /"
was append to the urlbuffer.After a do_curl() call,this
request is sent.I can't find what is the do_curl() used.
Would you like give me some clues?

Because of the targetproxy I used is usually the second
proxy.(culr -p -U user:pass -x httpproxy1:port1 -X "GET http://target/search?..." -0 proxy2:port2).I have no other
choice.

Best regards,
funtest
                                           2004 3 2

-- 
_____________________________________________________________
Web-based SMS services available at http://www.operamail.com.
>From your mailbox to local or overseas cell phones.
Powered by Outblaze
Received on 2004-03-01