View Single Post
  #7 (permalink)  
Old October 19th, 2005, 01:08 AM
dennison dennison is offline
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi ,
are you uisng some proxy for connecting to internet.

if yes use the following code and try

Set objWinHttp = server.CreateObject("WinHttp.WinHttpRequest.5.1")
objWinHttp.Open "POST", "http://www.4Guysfromrolla.com/"
objWinHttp.SetProxy 2,"18.87.8.3:1991"
comment 18.87.8.3 is the ip and 1991 is the port number
objWinHttp.SetRequestHeader "CONTENT-TYPE","application/x-www-form-urlencoded"
objWinHttp.SetTimeouts 30000, 30000, 30000, 30000
objWinHttp.Send m_cPostBuffer
strHTML = objWinHttp.ResponseText
response.write strHTML
Set objWinHttp = Nothing

but you need to register winhttp.dll.
It may be already in your system, else search in google you'll get this DLL

Denny
Reply With Quote