<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to post XML using CURL?</title>
	<atom:link href="http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/</link>
	<description>Future of web development</description>
	<lastBuildDate>Mon, 06 Feb 2012 17:31:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: EpicMedia</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-133</link>
		<dc:creator>EpicMedia</dc:creator>
		<pubDate>Mon, 23 Jan 2012 10:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-133</guid>
		<description>$postXML = file_get_contents(&#039;php://input&#039;);</description>
		<content:encoded><![CDATA[<p>$postXML = file_get_contents(&#8216;php://input&#8217;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anoop</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-130</link>
		<dc:creator>Anoop</dc:creator>
		<pubDate>Wed, 18 Jan 2012 12:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-130</guid>
		<description>Thanks

You made my DAY :)</description>
		<content:encoded><![CDATA[<p>Thanks</p>
<p>You made my DAY <img src='http://www.phpmind.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: surya</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-125</link>
		<dc:creator>surya</dc:creator>
		<pubDate>Tue, 27 Dec 2011 19:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-125</guid>
		<description>Hi
It worked for me.
Thanks for such a good tutorial.</description>
		<content:encoded><![CDATA[<p>Hi<br />
It worked for me.<br />
Thanks for such a good tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jhon</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-118</link>
		<dc:creator>jhon</dc:creator>
		<pubDate>Tue, 29 Nov 2011 17:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-118</guid>
		<description>hi you can have a look at below link

this has same code.. but they have also explained how to receive it on server end

http://bit.ly/vagu5V</description>
		<content:encoded><![CDATA[<p>hi you can have a look at below link</p>
<p>this has same code.. but they have also explained how to receive it on server end</p>
<p><a href="http://bit.ly/vagu5V" rel="nofollow">http://bit.ly/vagu5V</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jack</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-109</link>
		<dc:creator>jack</dc:creator>
		<pubDate>Fri, 12 Aug 2011 08:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-109</guid>
		<description>Hi,
I am using this script and its working fine. but I am facing one issue only when the size of xml increases, it throws the following error.

/**************************************************************/
ERROR
The requested URL could not be retrieved

While trying to process the request:

POST /servlet/ExternalServiceRequestServlet HTTP/1.1
Host: qa1.servicemagic.com
Accept: */*
Content-Type: text/xml
Content-Length: 1176
Expect: 100-continue


The following error was encountered:

    Invalid Request 

Some aspect of the HTTP Request is invalid. Possible problems:

    Missing or unknown request method
    Missing URL
    Missing HTTP Identifier (HTTP/1.0)
    Request is too large
    Content-Length missing for POST or PUT requests
    Illegal character in hostname; underscores are not allowed 

/**************************************************************/

Can anyone help me on this.
Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am using this script and its working fine. but I am facing one issue only when the size of xml increases, it throws the following error.</p>
<p>/**************************************************************/<br />
ERROR<br />
The requested URL could not be retrieved</p>
<p>While trying to process the request:</p>
<p>POST /servlet/ExternalServiceRequestServlet HTTP/1.1<br />
Host: qa1.servicemagic.com<br />
Accept: */*<br />
Content-Type: text/xml<br />
Content-Length: 1176<br />
Expect: 100-continue</p>
<p>The following error was encountered:</p>
<p>    Invalid Request </p>
<p>Some aspect of the HTTP Request is invalid. Possible problems:</p>
<p>    Missing or unknown request method<br />
    Missing URL<br />
    Missing HTTP Identifier (HTTP/1.0)<br />
    Request is too large<br />
    Content-Length missing for POST or PUT requests<br />
    Illegal character in hostname; underscores are not allowed </p>
<p>/**************************************************************/</p>
<p>Can anyone help me on this.<br />
Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesica</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-101</link>
		<dc:creator>Jesica</dc:creator>
		<pubDate>Tue, 21 Jun 2011 01:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-101</guid>
		<description>Hi, I&#039;m Jesica from Argentina, I&#039;m speack English not very well... I want to known how i make for send the request with POST HTTP/1.0 with cURL, I develop a programm that use this tecnology but I don´t known what can i do to send correctly the request.</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m Jesica from Argentina, I&#8217;m speack English not very well&#8230; I want to known how i make for send the request with POST HTTP/1.0 with cURL, I develop a programm that use this tecnology but I don´t known what can i do to send correctly the request.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashutosh</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-72</link>
		<dc:creator>Ashutosh</dc:creator>
		<pubDate>Fri, 03 Dec 2010 15:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-72</guid>
		<description>Thanks a lot...Great it&#039;s really works for me</description>
		<content:encoded><![CDATA[<p>Thanks a lot&#8230;Great it&#8217;s really works for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mandm</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-63</link>
		<dc:creator>mandm</dc:creator>
		<pubDate>Sat, 10 Jul 2010 00:46:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-63</guid>
		<description>Thanks for your patient replies once again....

actually my end goal is to post an XML to a site, but what should me my changes in this case?

and yes to view the response i have this file server.php

$xml = file_get_contents(&#039;client.php&#039;); 
$xml = new SimpleXMLElement($xml, LIBXML_NOCDATA, false); 

$response = (string) $xml; 
$response = strtoupper($response); 

echo $response;</description>
		<content:encoded><![CDATA[<p>Thanks for your patient replies once again&#8230;.</p>
<p>actually my end goal is to post an XML to a site, but what should me my changes in this case?</p>
<p>and yes to view the response i have this file server.php</p>
<p>$xml = file_get_contents(&#8216;client.php&#8217;);<br />
$xml = new SimpleXMLElement($xml, LIBXML_NOCDATA, false); </p>
<p>$response = (string) $xml;<br />
$response = strtoupper($response); </p>
<p>echo $response;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: om</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-62</link>
		<dc:creator>om</dc:creator>
		<pubDate>Sat, 10 Jul 2010 00:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-62</guid>
		<description>your type is xml but you are not posting XML file.</description>
		<content:encoded><![CDATA[<p>your type is xml but you are not posting XML file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: om</title>
		<link>http://www.phpmind.com/blog/2009/08/how-to-post-xml-using-curl/comment-page-1/#comment-61</link>
		<dc:creator>om</dc:creator>
		<pubDate>Sat, 10 Jul 2010 00:32:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=409#comment-61</guid>
		<description>you are not sending XML file. while you are using Content-Type: text/xml

Where you want to send xml file?</description>
		<content:encoded><![CDATA[<p>you are not sending XML file. while you are using Content-Type: text/xml</p>
<p>Where you want to send xml file?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

