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 / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

Making a POST to a remote web server and waiting for a response

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dylan Parry - 19 Oct 2007 10:48 GMT
Hi,

I'm working on a project that involves the company I work for and
another company that we have been working with. Part of the project
involves passing an XML file between two servers when a user clicks a
button within a CMS.

I'm told, by the other company, that the time taken to process the XML
at their end can be 2-3 minutes. Now obviously this is an issue as it
would cause both our server and the user's browser to timeout before the
operation is finished.

So, my question is, how can I ensure that the server doesn't timeout
whilst waiting for the remote server to respond, and how do I ensure
that the user's browser also does not timeout?

I presume that the secret to stopping the browser from timing out is to
send it some sort of progress report and have it update the display
every /x/ seconds - however I am not at all sure how to achieve this.

Thanks in advance,

Signature

Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.

Peter Bromberg [C# MVP] - 19 Oct 2007 11:42 GMT
At the server, you can set the timeout property for the page, or set  the
httpRuntime settings:

http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

On the browser, you can use a variety of techniques to indicate "progress",
such as:

http://www.eggheadcafe.com/tutorials/aspnet/87272b03-adec-45e1-b157-b21da3714dfd
/aspnet-animated-gifs-and.aspx

-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hi,
>
[quoted text clipped - 17 lines]
>
> Thanks in advance,
Dylan Parry - 19 Oct 2007 11:52 GMT
> At the server, you can set the timeout property for the page, or set  the
> httpRuntime settings:
>
> http://msdn2.microsoft.com/en-us/library/e1f13641.aspx

Oh of course :)

> On the browser, you can use a variety of techniques to indicate "progress",
> such as:
>
> http://www.eggheadcafe.com/tutorials/aspnet/87272b03-adec-45e1-b157-b21da3714dfd
/aspnet-animated-gifs-and.aspx

Thanks. That looks to be exactly what I am after. I was a bit dubious at
first, but the logic behind that solution seems to make sense.

Cheers,

Signature

Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.


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.