Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Performance / February 2006

Tip: Looking for answers? Try searching our database.

HttpWebRequest.GetResponse(); Performance issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
speed32 - 05 Jan 2006 04:55 GMT
The performance of this call is very slow when it is called the first time
within a program. ( 5 - 6 seconds ) However the second time I call this
method is very fast. ( 10 - 40 ms ). It does not matter how long I wait
between subsequent calls it is still fast.

Specifics:

Windows XP x64 with retail version of .net FrameWork 2.0
Web Site is remote but is very responsive. if I call the URL directly from a
Web browser.
The call returns an XML string.

Any help will be appreciated... Code fragement is below.

HttpWebRequest HttpWReq =
(HttpWebRequest)WebRequest.Create("http://somewebsite.htm");
               Console.WriteLine("\r\nCall 1.");
               

               HttpWReq.Credentials = CredentialCache.DefaultCredentials;
               HttpWReq.MaximumAutomaticRedirections = 4;
               HttpWReq.MaximumResponseHeadersLength = 4;
               HttpWebResponse HttpWResp =
(HttpWebResponse)HttpWReq.GetResponse();
               Console.WriteLine("\r\nCall 2.");
dotnetslackers@dejasurf.com - 12 Feb 2006 04:54 GMT
I have seen this too. Ever figure it out?
speed32 - 13 Feb 2006 01:04 GMT
no response frm  microsoft. i did monitor the line, sme dhcp traffic
happening.

> I have seen this too. Ever figure it out?
> ---
> Posted via www.DotNetSlackers.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.