curl-and-php
PHP 4.1.1 POST problem (fwd)
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 7 Jan 2002 09:55:45 +0100 (MET)
Date: Mon, 7 Jan 2002 09:55:45 +0100 (MET)
I forward your question to the proper mailing list. Please post follow-ups
there.
-- Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/ ---------- 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); ?> 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 PierluigiReceived on 2002-01-07