Inet Proxy Connection Troubles


   Using vb6 and the Inet control, I am trying to register a unique visit on a remote web server by using inet1.openurl("") , but when the operation is complete, the inet contro has downloaded the source of the page, but the remote server does not reccognize that there has been a connection or request. I've also tried, winsock with the same results. As well I've tried the webbrowser control, but I cant seem to send the proper headers to the server to make my server log a different IP address.

   Please can anyone tell me how I would send a reccognized request to a remote server and mask my ip.
Who is Participating?
zzzzzoocConnect With a Mentor Commented:
There's an issue with the Web Server or it's "hit counting" scripts then. It's possible they only track certain browsers.

This should sent common headers:


Private Sub Form_Load()
    Dim strSrvr As String
    Dim strHdrs As String
    Dim strRecv As String
    strSrvr = ""
    strHdrs = strHdrs & "Accept: */*" & vbCrLf
    strHdrs = strHdrs & "Accept -Language: en -us" & vbCrLf
    strHdrs = strHdrs & "Accept -Encoding: gzip , deflate" & vbCrLf
    strHdrs = strHdrs & "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" & vbCrLf
    strHdrs = strHdrs & "Host: " & strSrvr & vbCrLf
    strHdrs = strHdrs & "Connection: Keep -Alive" & vbCrLf & vbCrLf
    With Inet1
        .RemoteHost = strSrvr
        .RemotePort = 80
        .Execute strSrvr, "GET", , strHdrs
    End With
End Sub
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.