aboutsummaryrefslogtreecommitdiff
path: root/lib/getinfo.c
AgeCommit message (Collapse)Author
2008-06-06- Added CURLINFO_PRIMARY_IP as a new information retrievable withDaniel Stenberg
curl_easy_getinfo. It returns a pointer to a string with the most recently used IP address. Modified test case 500 to also verify this feature. The implementing of this feature was sponsored by Lenny Rachitsky at NeuStar.
2008-05-12- Introducing curl_easy_send() and curl_easy_recv(). They can be used to sendDaniel Stenberg
and receive data over a connection previously setup with curl_easy_perform() and its CURLOPT_CONNECT_ONLY option. The sendrecv.c example was added to show how they can be used.
2008-04-30- To make it easier for applications that want lots of magic stuff done onDaniel Stenberg
redirections and thus cannot use CURLOPT_FOLLOWLOCATION easily, we now introduce the new CURLINFO_REDIRECT_URL option that lets applications extract the URL libcurl would've redirected to if it had been told to. This then enables the application to continue to that URL as it thinks is suitable, without having to re-implement the magic of creating the new URL from the Location: header etc. Test 1029 verifies it.
2007-11-07if () => if()Daniel Stenberg
while () => while() and some other minor re-indentings
2007-08-01Patrick Monnerat and I modified libcurl so that now it *copies* all stringsDaniel Stenberg
passed to it with curl_easy_setopt()! Previously it has always just refered to the data, forcing the user to keep the data around until libcurl is done with it. That is now history and libcurl will instead clone the given strings and keep private copies.
2007-04-02fix compiler warningYang Tse
2007-03-31The info types cannot be checked for explicity by ANDing the types since theyDaniel Stenberg
have not been properly defined to allow this! Instead of changing the defines and break the ABI/API, I opted to modify the code to check for exact type matches. CID 10 coverity.com scan
2007-02-20compiler warning fixYang Tse
2006-12-22Curl_getinfo() now checks for a NULL SessionHandle pointerDaniel Stenberg
2006-09-25Compiler warning fixYang Tse
2006-09-07Major overhaul introducing http pipelining support and shared connectionDaniel Stenberg
cache within the multi handle.
2006-08-08Minix 3 doesn't have MSG_PEEKDan Fandrich
2006-05-11make sure the LASTSOCKET check only checks for SSL status if the socketDaniel Stenberg
truly use SSL
2006-05-10David McCreedy provided a fix for CURLINFO_LASTSOCKET that does extendedDaniel Stenberg
checks on the to-be-returned socket to make sure it truly seems to be alive and well. For SSL connection it (only) uses OpenSSL functions.
2006-03-21David McCreedy added CURLINFO_FTP_ENTRY_PATH to export the FTP entry pathDaniel Stenberg
2006-02-11Karl M added the CURLOPT_CONNECT_ONLY and CURLINFO_LASTSOCKET options thatDaniel Stenberg
an app can use to let libcurl only connect to a remote host and then extract the socket from libcurl. libcurl will then not attempt to do any transfer at all after the connect is done.
2005-07-27Peteris Krumins added CURLOPT_COOKIELIST and CURLINFO_COOKIELIST, which is aDaniel Stenberg
simple interface to extracting and setting cookies in libcurl's internal "cookie jar". See the new cookie_interface.c example code.
2005-04-22modified this yearDaniel Stenberg
2005-04-07GnuTLS support added. There's now a "generic" SSL layer that we use all overDaniel Stenberg
internally, with code provided by sslgen.c. All SSL-layer-specific code is then written in ssluse.c (for OpenSSL) and gtls.c (for GnuTLS). As far as possible, internals should not need to know what SSL layer that is in use. Building with GnuTLS currently makes two test cases fail. TODO.gnutls contains a few known outstanding issues for the GnuTLS support. GnuTLS support is enabled with configure --with-gnutls
2004-12-16Renamed a struct member to avoid conflict with a C++ reserved word.Dan Fandrich
2004-12-14urldata.h: Removed engine_list.Gisle Vanem
ssluse.*: Added SSL_strerror(). Curl_SSL_engines_list() now returns a slist which must be freed by caller.
2004-12-14Moved the engine stuff from the root-level of the SessionHandle struct to theDaniel Stenberg
UrlState sub-struct. Also made the engine_list exist for non-ssl builds to make curl build.
2004-12-13Handle new type CURLINFO_SLIST.Gisle Vanem
Handle new info list CURLINFO_SSL_ENGINES.
2004-10-19CURLINFO_NUM_CONNECTS and moreDaniel Stenberg
2004-09-30- Larry Campbell added CURLINFO_OS_ERRNO to curl_easy_getinfo() that allows anDaniel Stenberg
app to retrieve the errno variable after a (connect) failure. It will make sense to provide this for more failures in a more generic way, but let's start like this.
2004-05-11curl_global_init_mem() allows the memory functions to be replaced.Daniel Stenberg
memory.h is included everywhere for this.
2004-03-11dl and ulspeed are now curl_off_t so typecast them to double when weDaniel Stenberg
return their values
2004-03-10Use more curl_off_t variables when doing the progress meter calculations andDaniel Stenberg
argument passing and try to convert to double only when providing data to the external world.
2004-01-29Dan Fandrich's cleanup patch to make pedantic compiler options cause lessDaniel Stenberg
warnings. Minor edits by me.
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-09-04Based on Joerg Mueller-Tolk's patch, this introduces support forDaniel Stenberg
CURLINFO_HTTPAUTH_AVAIL and CURLINFO_PROXYAUTH_AVAIL
2003-08-20CURLINFO_RESPONSE_CODE replaces CURLINFO_HTTP_CODEDaniel Stenberg
2003-08-11Added support for CURLINFO_HTTP_CONNECTCODEDaniel Stenberg
2003-06-26use CURLDEBUG instead of MALLOCDEBUG for preprocessor conditionsDaniel Stenberg
2003-05-01Andy Cedilnik fixed some compiler warningsDaniel Stenberg
2003-01-29removed the local variables for emacs and vim, use the new sample.emacsDaniel Stenberg
way for emacs, and vim users should provide a similar non-polluting style
2003-01-16copyright year update in the source headerDaniel Stenberg
2003-01-16Allow CURLINFO_PRIVATE to be NULL, patch by Markus OberhumerDaniel Stenberg
2002-11-20Kjetil Jacobsen's patch that introduces CURLOPT_PRIVATE and CURLINFO_PRIVATEDaniel Stenberg
for storage and retrieval of private data in the curl handle.
2002-10-28prevent compiler warningsDaniel Stenberg
2002-09-03updated source code boilerplate/headerDaniel Stenberg
2002-04-16Dirk Manske brought the patch that introduces two new CURLINFO_* values:Daniel Stenberg
CURLINFO_REDIRECT_TIME and CURLINFO_REDIRECT_COUNT.
2002-04-02Jacky Lam added memdebug.h include to prevent crashes when that is usedDaniel Stenberg
2002-03-19copyright string (year) updateDaniel Stenberg
2002-02-20Nico Baggus' VMS tweaksDaniel Stenberg
2002-01-29Giaslas Georgios introduced CURLINFO_CONTENT_TYPEDaniel Stenberg
2002-01-27set header and request size to 0 before each *_perform()Daniel Stenberg
2001-11-20Georg Horn's STARTTRANSFER_TIME patchDaniel Stenberg
2001-10-11looks nicer and is better compatible with older vim versionsSterling Hughes
2001-09-28filetime should be -1 if the remote time was unknown as 0 is actually aDaniel Stenberg
valid time. we now store the filetime as a long to know for sure it can hold -1 (there exist some unsigned time_t cases)