HighTechTalks DotNet Forums  

httpwebrequest problem

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss httpwebrequest problem in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Tyler
 
Posts: n/a

Default httpwebrequest problem - 05-03-2006 , 01:58 PM






I am using httpwebrequest to do a screen scrape.

This works great on my development box, but does not on the production box.

Here is the code.

Dim webRequest As HttpWebRequest = CType(webRequest.Create(LOGIN_URL),
HttpWebRequest)
webRequest.Proxy = System.Net.GlobalProxySelection.GetEmptyWebProxy
webRequest.KeepAlive = False
Dim responseReader As StreamReader = New
StreamReader(webRequest.GetResponse.GetResponseStr eam)
Dim responseData As String = responseReader.ReadToEnd
responseReader.Close()

On my production box, I get this error:
The underlying connection was closed. Unable to connect to the remote server.

I have made sure I have .NET framework 1.1 SP 1 installed

I have added the following code to my web.config file

<system.net>
<defaultProxy>
<proxy
usesystemdefault = "false"
proxyaddress="http://srvisa.c1data.com:8080"
bypassonlocal="false"
/>
</defaultProxy>
</system.net>

And now I am at a loss?

Any thoughts?
Thanks
--
Tyler

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.