Posted by seaside on 12/17/06 03:09
Benjamin schrieb:
> seaside wrote:
> > I need to POST a HTTP request from within a PHP app, to inform another
> > app regarding certain changes.
> >
> > Since I don't need to get an answer back, I'd like to fire-and-forget
> > the POST request asynchronously.
>
> you can use the cURL PHP extension to do this really easily
> here's an example:
> $curl = curl_init("http://www.mypostapp.com/blah/foo");
> curl_setopt(CUROPT_POST, true);
> curl_setopt(CUROPT_POSTFIELDS, $mypost);
> curl_exec($curl);
> curl_close($curl);
Thx! Really helpful!
[Back to original message]
|