On Wed, Dec 20, 2000 at 02:56:35PM +0000, Dave Anderson wrote:
> Hi,
> 
> I have a couple of questions using xml with lwp.
> 
> I am trying to generate a simple xml message for communication with an
> http server.
> 
> There are two problems, at the server end, with my message.
> 
> Using the post command, the content is being escaped - i.e.
> 
> %3C%3Fxml%20version%3D%221.0%22%3F%3E%0A%3CSMSRequest%20xmlns%3D%22x-schema%3Asms
> etc...
> 
> The server doesn't want it escaped, and they reckon text/xml shouldn't
> be.

They are right.  Content of type text/xml should not be url encoded.
For the above post the content type should be set to:

Content-type: application/x-www-form-urlencoded

Martin

Reply via email to