curl-and-php
Re: Posting with an automatic hidden post
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 4 Feb 2009 09:13:38 +0100 (CET)
Date: Wed, 4 Feb 2009 09:13:38 +0100 (CET)
On Wed, 4 Feb 2009, Andrey Kuznetsov wrote:
> Explain this:
>
> curl_init
> URL
> CURLOPT_RETURNTRANSFER
> CURLOPT_FOLLOWLOCATION
> curl_exec
> extract key
> URL
> CURLOPT_POSTFIELDS
> curl_exec
> curl_close
>
> upon the 2nd url\curl_exec the page is reloaded,
No it isn't. CURLOPT_POSTFIELDS implies a POST and it does not "reload" any
page at all. Unless you by "reload" mean that it sends a request and gets
contents back.
> OR does curl-php work such that every line is executed as it is written, and
> does not buffer url, return transfer, post-true, etc... until curl_exec is
> issued?
I'm not sure what you mean, but yes the request is done by curl_exec().
-- / daniel.haxx.se _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2009-02-04