cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

RE: Problem with browser

From: Mark Leewe <mark_at_werk01.de>
Date: Fri, 11 Feb 2005 10:30:06 +0100

Thanks a lot, but now I know what's the problem is!

The session! The process blocks the hole session. So when I open a new
session for the process, everything works fine!

> -----Original Message-----
> From: curl-and-php-bounces_at_cool.haxx.se [mailto:curl-and-php-
> bounces_at_cool.haxx.se] On Behalf Of Matt Parkins
> Sent: Freitag, 11. Februar 2005 10:07
> To: 'Programming PHP/CURL'
> Subject: RE: Problem with browser
>
> One thing I'm doing right now is sending a message to a machine as you
> are,
> but instead of executing immediately it writes to a database (or file,
> whatever), and have something polling that file/database at the other end
> to
> actually execute the long process. That's one way, but I'm sure there are
> better ways...
>
> -----Original Message-----
> From: curl-and-php-bounces_at_cool.haxx.se
> [mailto:curl-and-php-bounces_at_cool.haxx.se] On Behalf Of Mark Leewe
> Sent: 11 February 2005 08:33
> To: curl-and-php_at_cool.haxx.se
> Subject: Problem with browser
>
>
> Hello,
>
> I'm new in this list, I hope to find some help, because I have a problem
> with cURL...
>
> I'm trying to execute a time-expensive process via cURL out of PHP, so
> that
> the user didn't have to wait for his browser until the process finished.
> I'm
> using the following code:
>
> exec ("usr/bin/curl -m 2 \"http://$HTTP_HOST/scan_exe.php?
> PHPSESSID=$PHPSESSID\"");
>
> This works fine. The process is running and the browser returns the PHP-
> site
> that started the process correctly. I even tried the PHP-Lib Module, and
> that works fine, too:
>
> $curl = curl_init();
> curl_setopt($curl, CURLOPT_URL, "http://$HTTP_HOST/scan_exe.php?
> PHPSESSID=$PHPSESSID");
> curl_setopt($curl, CURLOPT_TIMEOUT, 2);
> curl_exec($curl);
> curl_close($curl);
>
>
> The problem is: When I now try to go to another page, the browser freeze,
> until the process is over. The funny thing about it is, that only this
> browser freeze, when I open a second browser, I can navigate through the
> pages without any problems. It doesn't matter which type of browser I use
> (IE, Firefox, ...)
>
> Did someone have same problems? Is there a resolution for it? I would be
> really glad about help!
>
>
> Sorry for my bad english :-)
>
> Mark.
>
>
>
Received on 2005-02-11