curl getopt?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Is there a way to get the current curl option settings?  Like a
curl_getopt() or curl_showopts().

Re: curl getopt?

1x7y2z9 wrote:
Quoted text here. Click to load it

Yes and no.  There is curl_info() which will show you some info about
the last connection, but I suspect it's not what you're looking for.

It's a weakness in curl, IMHO.  I started a while back to encapsulate
curl into a class which remembers the parameters which were set.
However, I only implemented the options I needed at the time, with the
idea of extending it later.  It's not all that hard to do, and if you
need to remember the options, it's the way to go.

Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.

Re: curl getopt?

Correct - I am looking for something different - like the current
setting of timeout, connection_timeout, returntransfer, etc.  I concur
that this is a weakness in php-curl - IMHO this is basic

Thanks for the response and the idea to encapsulate curl.

Quoted text here. Click to load it

Site Timeline