curl-and-php
How do I POST with a different Content-Type via php?
From: YS.PRO <2ys.pro_at_gmail.com>
Date: Wed, 8 Aug 2007 18:51:22 +0300
Date: Wed, 8 Aug 2007 18:51:22 +0300
So I need to send xml-rpc message:
POST /rpc HTTP/1.0
User-Agent: myagent
Host: somehost.com
Content-Type: *text/xml*
Content-length: 250
XML message
<?xml version="1.0"?>
<methodCall>
<methodName>weblogUpdates.ping</methodName>
<params>
<param>
<value>myblog</value>
</param>
<param>
<value>http://www.myblog.com/</value>
</param>
</params>
</methodCall>
-- Nothing is impossible
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-08-08