Re: Sending a POST variable to an ASP page
| From: | Nathan Nobbe | Date: | Wed, 27 Aug 2008 19:13:19 +0000 |
| Subject: | Re: Sending a POST variable to an ASP page | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278827@lists.php.net to get a copy of this message | ||
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