curl-and-php
Re: Newbie PHP/Curl Problem
Date: Mon, 3 Nov 2003 15:53:24 -0000 (GMT)
I was trying:
curl -vL -d "url=index%3Dbooks&field-keywords=0446394319" -o
/tmp/temp.html
http://www.amazon.com/exec/obidos/search-handle-form/002-5640957-2809605
and it seems to just get amazon's error page.
> On Mon, 3 Nov 2003, Alistair Ross wrote:
>
>> My attempts at the commandline code can't seem to follow the re-directs
>> properly and end up just GETting the search input page.
>
> So what command line did you try?
>
> Use -L to follow redirects and -d to send the POST.
>
> BTW, the curl-users might be a better list to get advice on using the curl
> tool...
>
> --
> Daniel - been obfuscating curl source code since 1998.
> [[ Do not post private mails to this email address. They won't reach me.
> ]]
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us help
> YOU! Click Here: http://sourceforge.net/donate/
>
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
Received on 2003-11-03