Hi,
When I'm posting some XML data with the HTTPSocket I have to replace
all "+" by a space by myself.
Is this normal? Why isn't DecodeURLComponent doing this task?
Example:
on the client:
-----------------------
xml_doc=New XmlDocument
// creating more xml data here
httpform=New Dictionary
httpform.Value("xml")=xml_doc.ToString
sockXML.SetFormData httpform // is a HTTPSocket on a window
sockXML.Post "http://blahblahblah
on the server in the event of a HTTPSocket:
-----------------------
dim s as String
// receiving all newData and store it in string Buffer
// when this is done and ready do:
s= Buffer.NthField("xml=", 2)
s=DecodeURLComponent(s)
s=s.ReplaceAll("+", " ")
xml_doc =New XmlDocument
xml_doc.LoadXml(s)
Is there a nicer/better way to send/receive XML data from one socket
to another?
Thanks.
Regards,
Jaap Cammeraat
http://www.isticky.net
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>