Re: Sending a POST variable to an ASP page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



heres a simple example shaun,

$cH = curl_init('url to asp box');
curl_setopt_array(
$cH,
array(
        CURLOPT_POST => TRUE,
*     CURLOPT_POSTFIELDS* => array(
            'yourParamName' => 'yourParamVal'
        )
 ));
$response = curl_exec($cH);

personally though, i prefer the http extension and its much cleaner api.

-nathan

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux