curl-and-php
Re: Posting with an automatic hidden post
Date: Wed, 04 Feb 2009 19:48:48 -0800
many forms have the form action set to the same URL that delivered the
form in the first place. ez mistake to make. glad you got it sorted
bro, and maybe learn a little bit about HTTP requests and curl too. :)
Pierre Danjou wrote:
> Dear Andrey, Daniel and Collen,
>
> Thanks a lot for your help and response...
>
> Actually you were right and I was totally wrong!!!
>
> After 2 weeks of total headheack, I just figured out that my code was
> wrong.
>
> I was fetching the key on the form page and posting at the same adress!!!!
> I should have fetch the key on the form adress BUT post on the form
> action="" page..
>
> So simple!!! ANd it works perfectly.
> I was too obstinate thinking that curl was reloading the page unecessary.
>
>
> Thanks again,
>
> BEST.
>
>
>
>
>
> 2009/2/5 Colleen R. Dick <platypus_at_proaxis.com
> <mailto:platypus_at_proaxis.com>>
>
> Doesn't the 2nd curl_exec reload the page in order to
> know where to POST command when it goes to the url thereby refreshing
> and changing the key?
>
> NO.
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>
>
>
> --
> Pierre Danjou
> 123biwei_at_gmail.com <mailto:123biwei_at_gmail.com>
> tel : (0086) 138 170 318 75
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
- text/x-vcard attachment: platypus.vcf