473,387 Members | 3,750 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,387 software developers and data experts.

HTTP Response

Hello,

i have a question regarding HTTP request/response using ASP.NET.

PROBLEM:

My client-application is behind a firewall, so that the server must be
reached using HTTP. A started job on the server need a long time (ca. 1
hour) and produce intermediate results in a "not" fixed time-grid (that
means polling is not the best solution).

IDEA:

Some times ago i read an article to send a HTTP response in little pieces,
but i forget the location of that article ;-( My idea is to use this
approach for the server, every intermediate result send a little pice of the
HTTP response until the end of the job finish the HTTP response.

QUESTION:

I'am not sure if this is possible (especially over this long time of job).
In a book about HTTP i can't find such a solution in the first place. Is
this possible in ASP.NET ? I now that the HTTP implementation in ASP.NET is
very flexible/pluggable. Can one provide an example or link if this can be
done ?

Thanks in advantage !

Best Regards
Christian


Nov 18 '05 #1
1 1601

"Christian Knoblauch" <kn*******@astylos.de> wrote in message
news:cf*************@news.t-online.com...
Hello,

i have a question regarding HTTP request/response using ASP.NET.

PROBLEM:

My client-application is behind a firewall, so that the server must be
reached using HTTP. A started job on the server need a long time (ca. 1
hour) and produce intermediate results in a "not" fixed time-grid (that
means polling is not the best solution).

IDEA:

Some times ago i read an article to send a HTTP response in little pieces,
but i forget the location of that article ;-( My idea is to use this
approach for the server, every intermediate result send a little pice of the HTTP response until the end of the job finish the HTTP response.


This is possible, but requires it quite tricky to implement in ASP.NET
because it would require you to block an ASP.NET worker thread. A more
common approach to this problem is the "Orbitz" approach. The client
submits the job in one HTTP request and the server starts the job on an
application-created background thread (importantly not a thread-pool
thread), them immediately responds with a job ID to the client. The client
then waits and periodically sends additional HTTP requests quering the
status of the job.

David
Nov 18 '05 #2

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

Similar topics

7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
6
by: A.M-SG | last post by:
Hi, I have an aspx page at the web server that provides PDF documents for smart client applications. Here is the code in aspx page that defines content type: Response.ContentType =...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
8
by: Andreas Klemt | last post by:
Hello, I get this error Message "cannot redirect after http headers have been sent" when I do this response.redirect ("home.aspx") How can I find out with vb.net if already a http header has...
3
by: Christian Lutz | last post by:
Hy there I have a Web Services written in Java, running on Tomcat. The Client is written in C#. When i monitor the request/Response with TCPMon (included in Tomcat) i can observer the following...
1
by: google | last post by:
I'm building a small ASPX page in C# to forward HTTP POST requests to another site. When the other site returns an HTTP error such as 404 or 405, I want to return that same HTTP status value to my...
1
by: Nuno Magalhaes | last post by:
I'm doing a "low level" project that consists on monitoring certain QoS parameters such as: Time to resolve dns, time to connect, time to receive data, time to receive all web page, time to close...
5
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said...
3
by: Reporter | last post by:
Here is an example from the PHP Manual <?php if ((!isset($_SERVER)) || (1==1)) { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized'); echo 'Text to send...
7
by: Guy Davidson | last post by:
Hi Folks, I'm having some issues with an small socket based server I'm writing, and I was hoping I could get some help. My code (attached below) us supposed to read an HTTP Post message...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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...

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.