"yahalom emet" <[EMAIL PROTECTED]> writes: > I do it in tcl but the problem exists also from other languages. > the content type is "application/x-www-form-urlencoded"
There is a problem with the following code: > in tcl: > set data "<test> > <testAttribute test="2"/> > <testSemi>2;3434;23434;34</testSemi> > </test> > " > set response [http::geturl > http://192.168.10.150/xmlServer/xmlServer.ttml -query $data -timeout 50000] You need to encode the data: set data {<test> <testAttribute test="2"/> <testSemi>2;3434;23434;34</testSemi> </test> } set response [http::geturl http://localhost/post.ttml -query [http::formatQuery foo $data] -timeout 50000] puts [http::data $response] That gives me: foo {<test> <testAttribute test="2"/> <testSemi>2;3434;23434;34</testSemi> </test> } Otherwise, you are sending it 'raw', and things like = and ; are not encoded, and are thus seen by the parser, which then dutifully mangles the string:-) -- David N. Welton Consulting: http://www.dedasys.com/ Personal: http://www.dedasys.com/davidw/ Free Software: http://www.dedasys.com/freesoftware/ Apache Tcl: http://tcl.apache.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
