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