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

curl-and-php

another "post with curl" question

From: Yiğit Güneli <gro.tiiy_at_yiit.org>
Date: Tue, 28 Aug 2007 23:03:50 +0300

hi there.

i am new to curl and using it with php to include a remote webpage that has
a html form.
are there any methods for some kind of redirecting variables to original
form rather than the "curled" one?

i wrote this but it doesn't work as i expect.

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $adres);
if ($_POST){
foreach ($_POST as $nedir => $degermi) $postedicem.=$nedir."=".$degermi."&";
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postedicem);
}
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$ahmet=curl_exec($ch);
curl_close($ch);

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-08-29