
Winsock Socket Error from embedded VB Form
I set up my Socket call:
winsockAuth.RemoteHost = 192.168.101.150
winsockAuth.Protocol = sckTCPProtocol
winsockAuth.RemotePort = 80 'Port 80
winsockAuth.Connect
winsockAuth.SendData "GET MSBRemoteSB/offline_login.asp"
I receive this response in winsockAuth_DataArrival for:
winsockAuth.GetData strData
strData =
HTTP/1.1 400 Bad Request
Server: Microsoft-IIS/5.1
Date: Tue, 02 Apr 2002 23:35:23 GMT
Content-Type: text/html
Content-Length: 87
<html><head><title>Error</title></head><body>The parameter is
incorrect. </body></html>
I expect code along these lines:
? <?xml version="1.0" ?>
<Result>
? <code>1</code>
? <message>Success</message>
? </Result>
When I try the URL in the PIE browser (to verify that it's not a
simple connection error) I receive:
<?xml version="1.0" ?>1
What is puzzling is that the .asp that I call does not get any input
parameters (it's really just XML, no asp function yet). This error
message seems to be coming from the socket.
Any ideas on why I am seeing this behavior?
Thanks for your help. andrew