473,399 Members | 4,254 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,399 software developers and data experts.

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

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,

--
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.
Oct 19 '07 #1
2 1157
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...-gifs-and.aspx
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Dylan Parry" wrote:
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,

--
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.
Oct 19 '07 #2
Peter Bromberg [C# MVP] wrote:
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...-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,

--
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.
Oct 19 '07 #3

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

Similar topics

2
by: Jeremy Phillips | last post by:
I am trying to build a web form that uses the "POST" method (too much data for GET) to send data to a second form, then displays the response of that form post. The second web form requires...
5
by: designsimply | last post by:
I am trying to http post some xml to to a remote server using php. When I try to submit xml using PEAR's HTTP_Client::post() to the remote server, I get back the following "Invalid Document Format"...
3
by: Tom Donohue | last post by:
Hello All: I've got, what appears to be a simple problem, but am having a brain cramp on determining the best way to implement. Here is the requirement (I am using ASP.net v1.1) User enters...
3
by: Trebek | last post by:
Hello group: I have a quick question. Background: I have an assembly that is responsible for handling our clients' *requests* (not a webservice/http request per se but our concept of a...
8
by: John Dalberg | last post by:
Hello For a single signon solution, I am putting a login form for a remote server on my own site. When the form gets posted, the asp.net creates a httpwebrequest object, does the post, gets the...
4
by: Wayne P. | last post by:
I'm working on a shopping cart webapp and I need to perform a form POST of data to a 3rd party site (a payment processor, StormPay). I seem to be having problems doing this. I have an image...
1
by: Chris Langston | last post by:
We are seeing a very frustrating intermittent problem. We are making Synchronious web service method calls from a .NET windows Service using the following syntax WebRequest.getResponse call it...
8
by: Laith Zraikat | last post by:
I am trying to invoke a post request from code behind of an asp.net page using "WebClient" object, and I want the user to be redirected to the action url as well. So far Ive been able to send...
56
by: UKuser | last post by:
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my...
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.