Behaviour change - ServerXMLHTTP from XP (working) to Win2008 (not working)

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi all!
I have a fairly basic application that talks to a custom sslstream (c#) service backend for its data. The code is pretty generic (at least for test purposes):
<pre class="prettyprint set HttpRequest=Wscript.createobject("MSXML2.ServerXMLHTTP")
Config_Version=0
HttpRequest.open "GET", "https://test-svr:44443/CheckConfig?ver=" & Cstr(Config_Version) , False HttpRequest.setOption 2,13056<br/>HttpRequest.setOption 3,"test-client-cert"
HttpRequest.send
MsgBox HttpRequest.ResponseText [/code]
(deliberately omitting some code that doesnt affect the solution)
Current test server just sends back the original request data (full version sends back an xml formatted document with some useful info in it, but this is just a connectivity tester)
Now, if I test from xp, I get:
GET /CheckConfig?ver=0 HTTP/1.1rnContent-Type: text/xmlrnAccept-Language: en-gbrnAccept: */*rnUser-Agent: Mozilla/4.0 (compatible; Win32; WinHttp.WinHttpRequest.5)rnHost: test-svr:44443rnConnection: Keep-Alivernrn
which is as expected (and what I need to parse further)
but if I test from 2008r2 server (or Win7) I get the single letter "G" - that isnt a great deal of use. I have checked with Wireshark and that is definitely all that is being sent, although it completes the SSL handshake nicely so clearly isnt having any
issues with comms per se.
What am I missing here? I initially thought the WinHTTP proxy settings were at fault, or the WinHTTP.dll registration, but by definition if the SSL handshake completes those must be fine.


View the full article
 
Back
Top