This discussion is archived
1 Reply Latest reply: Jan 22, 2008 7:24 PM by 807603 RSS

encoding XML

807603 Newbie
Currently Being Moderated
Hello forum,

This question is not perfectly suited for this forum, but I imagine there's a bunch of smart people here that can help me understand something.

I was looking at this forum post http://forum.java.sun.com/thread.jspa?threadID=5123355 and I don't understand why data in a POST should be uri-encoded.

So here's my question: Why would somebody encode the data payload of a POST request? Isn't the data just a payload that's encapsulated and dutifully transferred without being parsed, or interpreted (such as a URI)?

Thanks, and sorry if this question is too simple.

-S
  • 1. Re: encoding XML
    807603 Newbie
    Currently Being Moderated
    seehowyouare wrote:
    So here's my question: Why would somebody encode the data payload of a POST request? Isn't the data just a payload that's encapsulated and dutifully transferred without being parsed, or interpreted (such as a URI)?
    It's transferred, but the server on the other side of the HTTP connection has to parse the data to pick out the individual name/value pairs.