cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: PHP 4.1.1 POST problem (fwd)

From: Sterling Hughes <sterling_at_bumblebury.com>
Date: Mon, 7 Jan 2002 23:03:27 +0100

> ---------- Forwarded message ----------
> Date: Sat, 05 Jan 2002 12:40:46 +0100
> From: Pierluigi Mangani <pluigi_at_cesena.net>
> To: daniel_at_haxx.se
> Subject: PHP 4.1.1 POST problem
>
> I have ben using the following to get a page from an online service
>
> curl -d "loc=90&cin=0&film=0"
> http://www.cineweb-er.com/risposta_proiezioni.asp
>
> And it works!
>
> I have been writing an application in php that need to gram some more
> pages from that url.
> So I have made the following just for make some test (looking at
> examples on curl site)
>
> <?
> $ch = curl_init();
> curl_setopt($ch,
> CURLOPT_URL,"http://www.cineweb-er.com/risposta_proiezioni.asp");
> curl_setopt($ch, CURLOPT_POST, 1);
> curl_setopt($ch, CURLOPT_POSTFIELDS,
> "loc=90&cin=0&film=0");
> curl_exec ($ch);
> curl_close ($ch);
> ?>
>
    It works fine for me with PHP & cURL latest CVS. Can you recompile
    with these and let me know what happens?

    -Sterling

> With php 4.1.1 and curl /libcurl 7.9.2 ssl it doesn't work. It seems to
> loop.
>
> Any idea ?
>
>
>
> Thanks in advance
>
> Pierluigi
>
>
>
>
>
Received on 2002-01-07