Jonas Söderqvist | 1 Oct 2004 16:10
Picon
Favicon

Check last updated

Hallo!

Dose anybody know how to check when a php or asp was last updated?

Best regards,
Jonas Söderqvist

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

Michael Shuler | 1 Oct 2004 17:44

Re: Check last updated

Jonas Söderqvist wrote:
> Dose anybody know how to check when a php or asp was last updated?

In the curl man page, there appears to be a couple of promising options 
that you might utilize to check on the timestamp of the remote file:

-R/--remote-time
      When used, this will make libcurl attempt to figure out the 
timestamp of the remote file, and if that is available make the local 
file get that same timestamp.

-z/--time-cond <date expression>
      (HTTP) Request to get a file that has been modified later than the 
given time and date, or  one  that has  been  modified  before  that 
time. The date expression can be all sorts of date strings or if it 
doesn't match any internal ones, it tries to get the time from a given 
file name instead! See the GNU date(1) or curl_getdate(3) man pages for 
date expression details.

Kind Regards,
Michael Shuler

Daniel Stenberg | 1 Oct 2004 20:21
Picon
Favicon

Re: Please help

On Thu, 30 Sep 2004, Kirk Cerny wrote:

> I am attempting to connect to a server using https: and a session cookie. I 
> can not seem to get in using a valid session.

And you have used LiveHTTPHeaders to figure out what your browser does and you 
make the same operations with curl?

> Nothing ever gets put into the cookie file

And you receive cookies?

> and I get a different error number every time.

*every* time? It seems like a major bug to me.

What libcurl version are you using on what platform?

--

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html

Willy Jaramillo | 4 Oct 2004 08:02

cURL Question

I was wondering if there is a way to do an asynchronous post using cURL.

 

I don’t want my script to wait for something to return. In other words, once it reaches the curl_exec($ch) line, I want my code to continue running without waiting for something to be returned.

 

Is this something that is possible.


Any help will be greatly appreciated.

Daniel Stenberg | 4 Oct 2004 14:33
Picon
Favicon

Re: cURL Question

On Mon, 4 Oct 2004, Willy Jaramillo wrote:

> I was wondering if there is a way to do an asynchronous post using cURL.

1. cURL is the name of the project that develops curl and libcurl.

2. curl is the name of the command line tool.

3. PHP/CURL is the name (I use) of the PHP binding for libcurl until a better
    pop up.

I assume you're talking about (3) here.

> I don't want my script to wait for something to return. In other words, once 
> it reaches the curl_exec($ch) line, I want my code to continue running 
> without waiting for something to be returned.

That would be possible if PHP allowed you to start a background process/thread 
or similar. But I don't think it does.

--

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html

Kirk Hedden | 4 Oct 2004 17:09

Re: cURL Question

What about using an exec() call to kick off a curl background process? It 
would only be an option on unix systems, I suppose.

Kirk

At 08:33 AM 10/4/2004, you wrote:
>On Mon, 4 Oct 2004, Willy Jaramillo wrote:
>
>>I was wondering if there is a way to do an asynchronous post using cURL.
>
>1. cURL is the name of the project that develops curl and libcurl.
>
>2. curl is the name of the command line tool.
>
>3. PHP/CURL is the name (I use) of the PHP binding for libcurl until a better
>    pop up.
>
>I assume you're talking about (3) here.
>
>>I don't want my script to wait for something to return. In other words, 
>>once it reaches the curl_exec($ch) line, I want my code to continue 
>>running without waiting for something to be returned.
>
>That would be possible if PHP allowed you to start a background 
>process/thread or similar. But I don't think it does.
>
>--
>      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
>       Dedicated custom curl help for hire: http://haxx.se/curl.html
>

Kirk Cerny | 4 Oct 2004 18:13
Picon

Re: cURL Question

Would setting the time out to something small work?

On Mon, 04 Oct 2004 11:09:37 -0400, Kirk Hedden
<khedden <at> treefrogcreations.com> wrote:
> What about using an exec() call to kick off a curl background process? It
> would only be an option on unix systems, I suppose.
> 
> Kirk
> 
> 
> 
> At 08:33 AM 10/4/2004, you wrote:
> >On Mon, 4 Oct 2004, Willy Jaramillo wrote:
> >
> >>I was wondering if there is a way to do an asynchronous post using cURL.
> >
> >1. cURL is the name of the project that develops curl and libcurl.
> >
> >2. curl is the name of the command line tool.
> >
> >3. PHP/CURL is the name (I use) of the PHP binding for libcurl until a better
> >    pop up.
> >
> >I assume you're talking about (3) here.
> >
> >>I don't want my script to wait for something to return. In other words,
> >>once it reaches the curl_exec($ch) line, I want my code to continue
> >>running without waiting for something to be returned.
> >
> >That would be possible if PHP allowed you to start a background
> >process/thread or similar. But I don't think it does.
> >
> >--
> >      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> >       Dedicated custom curl help for hire: http://haxx.se/curl.html
> >
> 
>

SAMER WAZZAN | 5 Oct 2004 10:19
Picon
Favicon

session curl problem

hello all
i use Curl library to post data to another page,but the problem it dosent set the sessions what can i do.

Add photos to your e-mail with MSN 8. Get 2 months FREE*.
Daniel Stenberg | 5 Oct 2004 10:25
Picon
Favicon

Re: session curl problem

On Tue, 5 Oct 2004, SAMER WAZZAN wrote:

> i use Curl library to post data to another page,but the problem it dosent 
> set the sessions what can i do.

1. Please do not post HTML mails to this list.

2. You need to provide a whole lot of more details for us to be able to help
    you.

--

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html

Harry Fearnley | 11 Oct 2004 19:21
Picon
Picon
Favicon

1) curl "Segmentation fault" with --trace 2) curl and PHP problem


I am having problems with both curl and curl/PHP.  I tried doing
some diagnosis using curl on its own, with --trace (and --trace-ascii)
-- this led to "Segmentation fault", as follows ...

    curl "Segmentation fault" with --trace
    ======================================

I run curl(*) from the (Fedora Core2 Linux) command line.  If I use
"--trace" I get a segmentation fault, but only if I have --trace (or
--trace-ascii) set, and _both_ -b and -c also set -- see below:

                     || with --trace  |  without --trace
--------------------||----------------------------------
with -b, without -c ||       N       |        N
without -b, with -c ||       N       |        N
with both -b and -c ||       Y       |        N

A full command line looks like:

curl --trace traceout.txt --insecure  -b nonexist.txt  -c cookiestest.txt
      -o out.html   https://sitename.domain

Until I can do some proper diagnosis with the curl command line, I
believe that I have no chance to diagnose the problem below.

    curl and PHP problem
    ====================

I have a sequence of curl command lines that do work, and that upload
a file to a server.  If I use exactly the same command lines from PHP
(v 4.3.8), but they fail.

(*) curl 7.11.1 (i386-redhat-linux-gnu) libcurl/7.11.1
     OpenSSL/0.9.7a ipv6 zlib/1.2.1.1

Harry

+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+.+-+-+-+-+-
http://www.eng.ox.ac.uk/people/Harry.Fearnley
Dept Engineering Science, Parks Rd, Oxford, OX1 3PJ, UK
Tel: +44 (0)1865 273928  --  Fax: +44 (0)1865 273010


Gmane