Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How can I end the HTTP response but continue executing ASP?

Reply
Thread Tools

How can I end the HTTP response but continue executing ASP?

 
 
boole
Guest
Posts: n/a
 
      02-15-2008
Hi there, when my ASP page receives the client request, I want to
gather the request data (form), promptly end the response to the
client (successful) and continue doing what I need to do with the
data, the result of which does not affect the response, hence why i
don't want to waste time leaving the connection open or keeping the
client waiting, I suppose you could call the client request a
"trigger".

I do not mind using ASP functions to fork, therad, execute or using
the buffer, whatever works... but I am very new to ASP/VBScript so I
do not know how to do this, and I think the Response.End will end ASP
execution, and I am not sure how to end only the HTTP response using
the buffer.

I don't want the client request to time out, I do not know the clients
time out settings.

I am not even sure if it is possible, perhaps it is a requirement of
ASP that the client waits for all ASP to execute, but there must be
some way, even using system calls or something to do this.

Thanks, George.
 
Reply With Quote
 
 
 
 
boole
Guest
Posts: n/a
 
      02-15-2008
I would like to add, if I could somehow execute another ASP page from
the receiving page, telling it not to wait for execution to finsh
(like a fork), that would be ideal.
 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      02-16-2008


"boole" <> wrote in message
news:3d7d23ff-e4d6-46e4-80cb-...
> Hi there, when my ASP page receives the client request, I want to
> gather the request data (form), promptly end the response to the
> client (successful) and continue doing what I need to do with the
> data, the result of which does not affect the response, hence why i
> don't want to waste time leaving the connection open or keeping the
> client waiting, I suppose you could call the client request a
> "trigger".
>
> I do not mind using ASP functions to fork, therad, execute or using
> the buffer, whatever works... but I am very new to ASP/VBScript so I
> do not know how to do this, and I think the Response.End will end ASP
> execution, and I am not sure how to end only the HTTP response using
> the buffer.
>
> I don't want the client request to time out, I do not know the clients
> time out settings.
>
> I am not even sure if it is possible, perhaps it is a requirement of
> ASP that the client waits for all ASP to execute, but there must be
> some way, even using system calls or something to do this.
>


> I would like to add, if I could somehow execute another ASP page from
> the receiving page, telling it not to wait for execution to finsh
> (like a fork), that would be ideal.


Since you are new to ASP is there anyway you can skip ASP altogether and
simply use ASP.NET instead? In ASP.NET its fairly straight forward to
instance a new thread to do your processing whilst allowing the response
handling thread to complete.

In ASP/VBScript (or any script for that matter) this sort of thing is not
possible.

My stock suggestion is to place the data you need for you processing in a
temporary DB table or in an XML file. You can then have a scheduled task
monitor the table or folder where the XML is placed and have it process the
record. If you prefer you could have it post to an ASP page telling it what
record or file to process.

--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
 
Anthony Jones
Guest
Posts: n/a
 
      02-17-2008
"Jon Paal [MSMD]" <Jon nospam Paal @ everywhere dot com> wrote in message
news:...
> you may want to place your processing code into a COM script component.
>
> learn more here:
>
> http://www.microsoft.com/mspress/boo...hap/1394b.aspx
>
>



That in itself won't allow the ASP script to return to the client before
processing is complete.
Calls into a component from ASP are synchronous. A compiled component can
obviously use an additional thread to continue processing whilst allowing
the called to thread to return. However coding this properly involves
considerable complexity.


--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Can I change the response URL to http://server/page.XLS instead of http://server/page.ASPX ? guillermojco@gmail.com ASP .Net 3 04-26-2007 04:49 AM
Response.Redirect at a response.end csgraham74 ASP .Net 1 06-16-2005 03:18 PM
how can i simulate my pc as http server by writing java code to send the http response by socketstream to some pc in the internet?! mike Java 5 09-21-2004 02:04 PM
Session end event fires but it is not executing code Sampriti ASP .Net 4 06-26-2003 10:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57