|
-
Jul 18th, 2005, 03:35 AM
#1
Thread Starter
New Member
what's the difference between "host" and" .RemoteHost "
HI,everybuddy
When I use winsock, I can't understand what's the difference between ".RemoteHost" & "Host"?
---------------------------------------------------
Private Sub Command1_Click()
With Winsock1
.Close
.RemoteHost = "www.vbfirums.com" ''''''''''''''''''here
.RemotePort = 80
.Connect
End With
End Sub
Private Sub Winsock1_Connect()
Dim s As String
s = "GET / HTTP/1.0" + vbCrLf
s = s + "Accept: */*" + vbCrLf
s = s + "Accept -Encoding: gzip , deflate" + vbCrLf
s = s & "Pragma: no-cache" & vbCrLf
s = s & "Cache-Control: no-cache" & vbCrLf
s = s & "Host: www.vbfirums.com" ''''''''''''''''''here
s = s + vbCrLf
Winsock1.SendData s
End Sub
-----------------------------------------
Why need I define "Host" again after I define "RemoteHost" while I "open" this sock?
can I just ignore the 2nd one?
thanks
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
|