lalchetian 0 Newbie Poster
Function GetHTMLPage(Inet1 As INet, ByVal url As String, ByVal filename As String, ByVal proxy As String) As String
    Dim fnum As Integer
    On Error GoTo errorfetch
    INet.Cancel

    INet.proxy = proxy
errorfetch:
nme = Form1.Caption
    GetHTMLPage = Inet1.OpenURL(url)
    If Inet1.StillExecuting = True Then
    DoEvents
    End If
    Form1.Caption = nme
        fnum = FreeFile
        Open filenamehtml + filename For Output As #fnum
        Print #fnum, GetHTMLPage
        Close #fnum

End Function

It gets url from a file,fetches it via a proxy ,processes it and then gets the subsequent url
urls are like:

now the problem is It actually fetches the html but not of the same url as passed in the argument but of some different url . I can say this coz i save the html and when i open it in browser the page format is same but its not of the url requested. the code is simple enough and i have been trying to figure it out for a week now
any sort of help/alternatives would be highly appreciated