Created
May 28, 2014 11:41
-
-
Save skacurt/7ceac8c2c7c3114fd858 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
Const HTTPREQUEST_PROXYSETTING_PROXY = 2 | |
Const HTTPREQUEST_SETCREDENTIALS_FOR_PROXY = 1 | |
Dim responseText | |
With Server.CreateObject("WinHttp.WinHttpRequest.5.1") | |
.SetProxy HTTPREQUEST_PROXYSETTING_PROXY, "us.proxymesh.com:31280" | |
.Open "GET", "http://example.com" | |
.SetCredentials "username", "password", HTTPREQUEST_SETCREDENTIALS_FOR_PROXY | |
.Send | |
responseText = .ResponseText | |
End With | |
%> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment