Sathya,
I had this same need come up a few days ago. Here's how I solved the
problem:
Script #1 needs to send an HTTP request without waiting for a response.
Instead of passing the call to libwww (or whatever HTTP method you're
using), Script #1 writes the URL to a text file or a database.
Create a second script (Script #2) which is a persistent script - it's
always running. This script is a clean up script. It's constantly
checking the text file (or the database) to see if there are any URL's that
need to processed. If so, it sends the HTTP request and deletes the URL
from the text file or database.
Get Script #2 running. Now, whenever Script #1 is executed, it simply
writes the URL to the holding area and it's done. The problem I was having
- and you probably are too - is that the HTTP request can take a long long
time to proccess which holds up the execution of Script #1. This technique
solves that problem because Script #2 is the one who sends the HTTP request
and waits as long as necessary. Once Script #1 has written the URL to the
file or database, it can go on its merry way confident that the HTTP
request will be sent.
- Eric
At 06:57 PM 3/4/03 +0530, [EMAIL PROTECTED] wrote:
>Hi,
> I need to send HTTP Requests without waiting for the response. Has
>anyone done this before?
>My version of perl is 5.8.0 for MSWin32. (OS is Windows NT)
>
>Regards,
> Sathya
>
>
>
>
>
>