Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21159

get the surce with winhttp through a Proxy

$
0
0
hello !

i want to get the source of this page with winhttp in vb6 :

Code:

http://mihanwebads.com/website/js
[CODE]


i try to get the source with PROXY :
Code:

Private WithEvents Http1 As WinHttp.WinHttpRequest

Http1.Open "GET", "http://mihanwebads.com/website/js", True
Http1.SetRequestHeader "Host", "mihanwebads.com"
Http1.SetRequestHeader "Accept", "*/*"
Http1.SetRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"
Http1.SetRequestHeader "Cache-Control", "no-cache"
Http1.SetProxy 2, "212.175.88.16:8080"
Http1.Send



but when i get the source of page in txtbox with:

Code:


Private Sub Http1_OnResponseFinished()
text1.Text = Http1.ResponseText
end sub

Nothing is In TextBox !

why the text1.text is empty?

Viewing all articles
Browse latest Browse all 21159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>