curl-users
Re: cURL POST issues
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 19 Apr 2005 09:22:22 +0200 (CEST)
Date: Tue, 19 Apr 2005 09:22:22 +0200 (CEST)
On Mon, 18 Apr 2005, Ryan Hoffman wrote:
> The following works in an IE browser, but not with cURL below...
>
> http://walter.office.ccc.net/cgi-bin/search.cgi?q=dukesofhazzard&ps=20&o=0&m=all&wm=wrd&ul=&wf=222210
If you can paste this into IE and it works, then it makes a GET, not a POST.
> # curl -o test.htm -d q=dukesofhazzard -d ps=20 -d o=0 -d m=all -d wm=wrd -d
> ul=222210 -d wf=222210 http://walter.office.ccc.net/cgi-bin/search.cgi
... and this makes a POST. It really is no surprise that they may act
differently.
And you may want to use --trace-ascii instead to get that trace data. Seems
easier to me.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-04-19