|
-
Mar 27th, 2001, 07:06 AM
#1
Thread Starter
New Member
hi
i have encounter a problem on winsock control in vb. i am making a exe . when i am running this exe on server it work fine .i,e it send data to web server but if i run in proxy then it can't connect to web server. iam writting the code also. can any one help me. the error come as a "protocol not suppot"
strRemoteHost = txtProxyServer.text
intport = CInt(txtProxyPort.text)
Inet.RemoteHost = strRemoteHost: Inet.RemotePort = intport: Inet.Connect
While (Inet.State <> sckConnected) And (Inet.State <> sckError): DoEvents: Wend
If Inet.State = sckConnected Then
headers = "Host: " & strRemoteHost & vbCrLf _
& "Content-length: 15 " & vbCrLf _
& "Content-type: application/x-www-form-urlencoded"
Inet.SendData "POST " & webServerPath & " HTTP/1.0" & vbCrLf _
& headers & vbCrLf & vbCrLf _
& query
thnanks in advance
email id : [email protected]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|