473,396 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Timeout on system net webclient

Jon
Hi
using vb.net/vis studio 2003

Im using system net webclient to pull data from some other web sites, works
well with 1 but - I'd like to be able to set a short timeout on the request.
There doesn't to be a timeout property - I used to use msxml2.serverxmlhttp
under asp which allowed setting a timeout. Is it possible to use asp
components with .net or is there a better to do this?

Cheers,
Jon
Nov 18 '05 #1
2 4844
Use HTTPWebRequest and HTTPWebResponse?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.

"Jon" <jo*******@NOCRAPTHANKStiscali.co.uk> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl...
Hi
using vb.net/vis studio 2003

Im using system net webclient to pull data from some other web sites, works well with 1 but - I'd like to be able to set a short timeout on the request. There doesn't to be a timeout property - I used to use msxml2.serverxmlhttp under asp which allowed setting a timeout. Is it possible to use asp
components with .net or is there a better to do this?

Cheers,
Jon

Nov 18 '05 #2
Jon
just the job - thanks Eric

Jon

"Eric Lawrence [MSFT]" <e_********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Use HTTPWebRequest and HTTPWebResponse?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
"Jon" <jo*******@NOCRAPTHANKStiscali.co.uk> wrote in message
news:Oz**************@tk2msftngp13.phx.gbl...
Hi
using vb.net/vis studio 2003

Im using system net webclient to pull data from some other web sites,

works
well with 1 but - I'd like to be able to set a short timeout on the

request.
There doesn't to be a timeout property - I used to use

msxml2.serverxmlhttp
under asp which allowed setting a timeout. Is it possible to use asp
components with .net or is there a better to do this?

Cheers,
Jon


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ram Baruch | last post by:
Hi, I have a question: I made a windows service (using VS wizard). All it does is to connect to my site every X seconds and check if there is anything new to download. If there is- it downloads a...
3
by: Michael Fields | last post by:
I have a problem with the WebClient and uploading a file to a web server. The stream object returned from the WebClient.OpenWrite menthod throws a timeout exception when using this method on...
1
by: J Mon | last post by:
I have an error that is only appearing on one server and am trying to find out what the cause is. Basically it is requesting a file from a url and uses the WebClient.DownloadFile() method. This...
2
by: Crirus | last post by:
How can I change a WebClient timeout in order to allow more time to a server to respond -- Cheers, Crirus ------------------------------ If work were a good thing, the boss would take it...
6
by: Russell Stevens | last post by:
I use a WinForm app for users to upload a file to my server. Basically one line of code; Response = WC.UploadData(MyUrl, "PUT", MyByteArray) Works fine except for larger files. After about 104...
1
by: Patrick Dugan | last post by:
I am using the webclient (system.net) to download a file. I haven't found a "timeout" interval setting so I'm guessing there must be some other way to limit it. Is there anyway to limit the amount...
1
by: Christian Urbanczyk | last post by:
Hello! I have a problem with the Webrequest. I've search everywhere to find an answer but it seems that no one has the the problem before. So i hope somebody can help me here! Following Code:...
1
by: Macneed | last post by:
i am a newbie, i want to write a code to download data from web using webclient string HTMLstring = ""; WebClient client = new WebClient(); Byte HP =...
3
by: Piotrekk | last post by:
Hi My question is: What is the best way to download file giving it maximum timeout ( for example 30 minutes ). After this time the operation should be terminated ( maybe exception ? ). I was...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.