I'm working with MSXML2.ServerXMLHTTP to use a web service from classic asp. I pass several parameters and everything is working good except when i try to pass a value with the symbol '+'. For example: a value like 'abc+def' is converted to 'abc def' and then it fails because of the validation.
This is my code:
Set httpReq = New MSXML2.ServerXMLHTTP
BookID = "1"
Category = "cf+so"
webServiceUrl = "http://localhost:1131/WS/MyWebService.asmx/Search?BookID=
" & BookID
webServiceUrl = webServiceUrl & "&Category=" & Category
httpReq.Open "GET", webServiceUrl, False
Set myXmlDoc = New MSXML2.DOMDocument
When i debug it..this is what the web service receive:
BookID = "1", Category = "cf so"
As you can see the web service receive a blank space ' ' instead of '+' but i need the '+' to be passed.
Somebody know why is this happening? Any idea?