note modified in by philip

From: Date: Fri, 01 Feb 2002 06:32:43 +0000
Subject: note modified in by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-26119@lists.php.net to get a copy of this message
Getting curl to post is a little confusing at first. Here is the code to post to a web page. $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://www.example.com/foo.php"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, "postvar1=value1&postvar2=value2"); curl_exec ($ch); curl_close ($ch); --was-- http://www.php.net/manual/en/.php

« previous php.notes (#26119) next »