note 81581 added to ref.curl

From: Date: Tue, 04 Mar 2008 21:16:10 +0000
Subject: note 81581 added to ref.curl
Groups: php.notes 
Request: Send a blank email to php-notes+get-136745@lists.php.net to get a copy of this message
if you would like to send xml request to a server (lets say, making a soap proxy), you have to set url_setopt($ch, CURLOPT_HTTPHEADER, Array("Content-Type: text/xml")); makesure you watch for cache issue: the below code will prevent cache... curl_setopt($ch, CURLOPT_FORBID_REUSE, 1); curl_setopt($ch, CURLOPT_FRESH_CONNECT, 1); hope it helps ;) ---- Server IP: 60.54.139.202 Probable Submitter: 116.206.8.37 ---- Manual Page -- http://www.php.net/manual/en/ref.curl.php Edit -- https://master.php.net/note/edit/81581 Del: integrated -- https://master.php.net/note/delete/81581/integrated Del: useless -- https://master.php.net/note/delete/81581/useless Del: bad code -- https://master.php.net/note/delete/81581/bad+code Del: spam -- https://master.php.net/note/delete/81581/spam Del: non-english -- https://master.php.net/note/delete/81581/non-english Del: in docs -- https://master.php.net/note/delete/81581/in+docs Del: other reasons-- https://master.php.net/note/delete/81581 Reject -- https://master.php.net/note/reject/81581 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136745) next »