Brad Hards
6076549304
Add angle brackets to addresses in easy SMTP examples, as for smtp-multi example.
2010-12-25 23:06:29 +01:00
Daniel Stenberg
7dc9393d3b
smtp-multi: put recipient within <brackets>
...
Even if libcurl might to do it for us, it is more correct.
2010-12-23 22:21:24 +01:00
Brad Hards
0e944fb24e
smtp-tls: add a missing newline
...
Without this you won't get the next (Subject) line.
2010-12-22 02:20:18 +01:00
Daniel Stenberg
bcfb9ea34c
examples: socket type cleanup
2010-12-18 17:13:24 +01:00
Brad Hards
d2395f962d
smtp-tls: add Message-ID: header
2010-12-18 17:07:57 +01:00
Daniel Stenberg
476b1a079b
gitignore: ignore the new example execs
2010-12-17 23:35:04 +01:00
Daniel Stenberg
9583b4af90
examples: fix compiler warnings
2010-12-17 23:34:26 +01:00
Daniel Stenberg
8219bc9e19
examples: build all examples easier
2010-12-17 23:34:06 +01:00
Brad Hards
57523e3578
smtp-tls: new example
...
This example shows how to send SMTP with TLS
2010-12-17 22:55:58 +01:00
Brad Hards
37a22d4749
Docs: add simple SMTP example
...
Add a simple SMTP example program, patterned after some of the existing
examples, and the curl application.
This version addresses issues raised by David Woodhouse on comments in
the simplesmtp.c example.
2010-12-17 22:51:54 +01:00
Daniel Stenberg
76c54bd129
example: fix compiler warnings in fopen.c
2010-12-17 00:09:48 +01:00
Brad Hards
8f50a404f9
chkspeed: bad strtol() call for -M option
...
Bug: http://curl.haxx.se/mail/lib-2010-12/0192.html
2010-12-17 00:09:48 +01:00
Daniel Stenberg
d97fa56fd4
version-check: added brief documentation
...
and the traditional source header
2010-12-03 14:10:04 +01:00
Yang Tse
5db0a412ff
atoi: remove atoi usage
2010-11-28 23:11:14 +01:00
Dan Fandrich
46041ee918
Added a couple examples that were missing from the tar ball
2010-11-19 17:17:38 -08:00
Daniel Stenberg
0a2edfc348
version-check.pl: display version number for symbols
...
This script is the start of a helper tool that scans a source code and
outputs the most recent libcurl version it finds symbols for. Meaning
that if there's no conditions in the code, that's the earliest libcurl
version the scanned code requires.
It is not added to the Makefile.am yet as it is still a bit crude, but
I'm committing it to keep it and allow us to work on it.
2010-11-12 23:29:29 +01:00
Yang Tse
34498c13be
fix snapshot generation
2010-11-07 03:39:31 +01:00
Daniel Stenberg
809a748124
fopen.c: re-indented, fixed previous mistake
...
I've made the code intended using curl-style now to look more like other
examples.
My previous "fix" was a bit too invasive but is now fixed again.
2010-11-04 11:43:50 +01:00
Daniel Stenberg
542318b113
multi use: call multi_perform even on select() timeouts
2010-11-04 11:37:23 +01:00
Daniel Stenberg
909e711e74
example: add smtp-multi.c
...
An example application source code sending SMTP mail with the multi
interface. It is based on the code Alona Rossen provided, which in turn
is based on existing example/test code, and I converted it even more
into a decent example with a fair multi API use, put the info required
to edit at the top and I added some comments.
2010-11-04 10:32:38 +01:00
Daniel Stenberg
18e7b52e8e
examples: use example.com in example URLs
2010-10-05 15:00:19 +02:00
Dirk Manske
5fb4279ec7
multi & hiper examples: updates and cleanups
...
all multi and hiper examples:
* don't loop curl_multi_perform calls, that was <7.20.0 style, currently
the exported multi functions will not return CURLM_CALL_MULTI_PERFORM
all hiper examples:
* renamed check_run_count to check_multi_info
* don't compare current running handle count with previous value, this
was the wrong way to check for finished requests, simply call
curl_multi_info_read
* it's also safe to call curl_multi_remove_handle inside the
curl_multi_info_read loop.
ghiper.c:
* replaced curl_multi_socket (that function is marked as obsolete) calls
with curl_multi_socket_action calls (as in hiperfifo.c and
evhiperfifo.c)
ghiper.c and evhiperfifo.c:
* be smart as hiperfifo.c, don't do uncessary curl_multi_* calls in
new_conn and main
2010-09-30 22:20:52 +02:00
James Bursa
fbefd816e4
getinmemory: make the example easier to follow
...
1. Remove the comment warning that it's "not been verified to work". It
works with no problems in my testing.
2. Remove 2 unnecessary includes.
3. Remove the myrealloc(). Initialize chunk.memory with malloc() instead
of NULL. The comments for these two parts contradicted each other.
4. Handle out of memory from realloc() instead of continuing.
5. Print a brief status message at the end.
2010-09-14 22:52:04 +02:00
Daniel Stenberg
fc308282ac
.gitignore: ignore all built examples
2010-08-02 23:47:44 +02:00
Daniel Stenberg
e9f3513264
example: fix code to build warning-free
2010-08-02 23:46:24 +02:00
Constantine Sapuntzakis
bc0699f226
examples: add curl_multi_timeout
...
Make the multi-interface using examples use curl_multi_timeout to
properly educate users how to do things.
2010-07-14 00:32:53 +02:00
Pavel Raiskup
31dd8ab1d6
examples: new FTP wildcard showcase
2010-06-24 23:41:09 +02:00
Kamil Dudka
d487ade72c
test536: do not fail with threaded DNS resolver
...
Also tweaked comments in certain examples using curl_multi_fdset().
2010-04-24 12:14:21 +02:00
Daniel Stenberg
05de2cf180
remove all .cvsignore files
2010-03-25 23:22:03 +01:00
Daniel Stenberg
2309b4e330
remove the CVSish $Id$ lines
2010-03-24 11:02:54 +01:00
Daniel Stenberg
eef316f099
spellchecked by Stphane Fillod
2010-02-26 22:58:24 +00:00
Yang Tse
46b112bcd4
replaced tabs with spaces
2010-02-16 13:32:45 +00:00
Yang Tse
a07bc79117
removed trailing whitespace
2010-02-14 19:40:18 +00:00
Daniel Stenberg
a74e885bef
Yun Fu pointed out a flaw in the loop that checks handles, and I indented
...
the code more curl-style
2010-01-21 09:53:30 +00:00
Daniel Stenberg
2e83006603
use the modern name for this option
2010-01-04 18:43:29 +00:00
Yang Tse
55e68ba333
I removed leading 'curl' path on the 'curlbuild.h' include statement in
...
curl.h, adjusting auto-makefiles include path, to enhance portability to
OS's without an orthogonal directory tree structure such as OS/400.
2009-11-05 15:04:03 +00:00
Daniel Stenberg
f39380b1ac
strerror() => curl_easy_strerror()
2009-11-02 21:20:45 +00:00
Gunter Knauf
945feafe25
use stderr for error output.
2009-09-10 18:36:06 +00:00
Gunter Knauf
5389ac0ddf
fixed spelling.
2009-09-10 15:00:21 +00:00
Daniel Stenberg
aaed838872
add ftpgetinfo
2009-09-05 17:54:30 +00:00
Gunter Knauf
7df26a5415
added ftpgetinfo sample since users asked frequently for such a sample.
2009-09-05 15:23:37 +00:00
Gunter Knauf
d055226949
added chkspeed to samples.
2009-09-03 17:54:02 +00:00
Gunter Knauf
cf910f3097
updated MingW32 makefile for recent external libs.
2009-09-03 17:53:21 +00:00
Gunter Knauf
9539d32298
added simple chkspeed sample.
2009-08-31 02:06:19 +00:00
Yang Tse
5d502eb90c
VMS adjustment
2009-06-10 12:59:59 +00:00
Yang Tse
420bfbcf40
Use curl_off_t and CURL_FORMAT_CURL_OFF_T for file size.
2009-06-08 15:09:47 +00:00
Yang Tse
6582895b51
docs/example patches for VMS
2009-06-05 18:40:40 +00:00
Yang Tse
4677778f85
Remove empty line used to force CVS to update the $Id date string format
2009-05-19 12:12:22 +00:00
Yang Tse
0427b783e2
Add empty line, to force CVS to update the $Id date string format
2009-05-18 12:33:51 +00:00
Gisle Vanem
f11969015a
Avoid compiler warning about unused argument.
2009-04-18 09:59:42 +00:00
Daniel Stenberg
79a91b8168
make this example not only replace an internal header but also add a totally
...
new and non-standard one
2009-01-12 21:29:23 +00:00
Daniel Stenberg
dd2fc45c27
Markus Koetter's adaptation of hiperfifo.c to instead use libev
2008-11-21 10:10:33 +00:00
Daniel Stenberg
0b489c7e61
and now it compiles too!
2008-11-19 15:31:55 +00:00
Daniel Stenberg
22d4db1cf2
I updated this example to use the modern paradigms of the socket API where
...
*_socket_all() and *_socket() aren't used at all but only *_socket_action()
is.
2008-11-19 15:30:41 +00:00
Dan Fandrich
0eb083e979
Argument to CURLMOPT_MAXCONNECTS must be a long
2008-09-22 17:27:24 +00:00
Dan Fandrich
152cf6325d
Checked in some grammatical and minor other fixes in the documentation and
...
examples that I found in the FreeBSD ports system.
2008-09-10 07:11:45 +00:00
Yang Tse
59e378f48f
remove unnecessary typecasting of malloc()
2008-09-06 05:29:05 +00:00
Yang Tse
861b647e7b
remove unnecessary typecasting of realloc()
2008-09-06 04:28:43 +00:00
Daniel Stenberg
4c9768565e
- Introducing CURLOPT_CERTINFO and the corresponding CURLINFO_CERTINFO. By
...
enabling this feature with CURLOPT_CERTINFO for a request using SSL (HTTPS
or FTPS), libcurl will gather lots of server certificate info and that info
can then get extracted by a client after the request has completed with
curl_easy_getinfo()'s CURLINFO_CERTINFO option. Linus Nielsen Feltzing
helped me test and smoothen out this feature.
Unfortunately, this feature currently only works with libcurl built to use
OpenSSL.
This feature was sponsored by networking4all.com - thanks!
2008-09-05 14:29:21 +00:00
Yang Tse
79ffbf7fe1
MSVC adjustment
2008-08-31 12:12:35 +00:00
Gisle Vanem
d8cab4c133
Pick-up programs from Makefile.inc.
2008-08-17 16:20:23 +00:00
Dan Fandrich
cf30b24706
Fixed unused variable warning
2008-08-14 18:41:37 +00:00
Daniel Stenberg
aab2d52b25
httpcustomheader.c is a new tiny example showing a HTTP request with a custom
...
header replacing an internal one
2008-08-13 08:51:52 +00:00
Yang Tse
14240e9e10
Initial support of curlbuild.h and curlrules.h which allows
...
to have a curl_off_t data type no longer gated to off_t.
2008-08-07 00:29:08 +00:00
Yang Tse
a00febe1a0
add comment for include paths
2008-07-15 13:54:30 +00:00
Gisle Vanem
a95e600eb0
Added libidn libs as needed. Added compilation of sendrecv.c
...
and cookie_interface.c.
2008-07-08 13:55:20 +00:00
Dan Fandrich
e664cd5826
Fixed a surprising number of example programs that were passing int arguments
...
to curl_easy_setopt instead of long.
2008-05-22 21:20:07 +00:00
Daniel Stenberg
c2a84aa6f0
change the code style to be more curlish, and changed some of the output
...
to be more descriptive and finally set VERBOSE mode to 1 by default
2008-05-19 20:40:53 +00:00
Daniel Stenberg
e059efda1b
removed lots of warnings
2008-05-16 21:14:50 +00:00
Dan Fandrich
ade57a781c
Included stdint.h to get the intptr_t type (needed on OpenBSD at least).
2008-05-15 22:31:23 +00:00
Daniel Stenberg
514592b892
- Introducing curl_easy_send() and curl_easy_recv(). They can be used to send
...
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-05-12 21:43:24 +00:00
Yang Tse
19479ea021
Internal time differences now use monotonic time source if available.
...
This also implies the removal of the winmm.lib dependency for WIN32.
2008-05-09 16:31:51 +00:00
Daniel Stenberg
79300cdcd9
return 0 not -1 at end of data!
2008-04-12 08:35:04 +00:00
Dan Fandrich
aa2a54c10a
Give a hint as to why a url_fopen failed.
2008-04-04 18:45:37 +00:00
Dan Fandrich
bf52cef16f
Made sure that curl_global_init is called in all the multithreaded
...
example programs.
2008-04-03 20:28:32 +00:00
Gunter Knauf
16a9c5e02b
removed unused var.
2008-04-02 03:11:34 +00:00
Dan Fandrich
1e482fe6a8
Changed the makefile so the doc/examples/ programs are never built in a
...
normal build/install (only with the 'make check' target), so that a
build failure in the examples isn't fatal.
2008-03-31 03:01:13 +00:00
Daniel Stenberg
f3c0afa5b8
fix code that is normally #ifdef'ed out
2008-03-13 12:36:22 +00:00
Daniel Stenberg
b12fef3f31
Michal Marek's cleanup of how curl_easy_setopt() is used in examples and
...
test code. Thanks to his curl_easy_setopt() typechecker work...
2008-02-27 09:06:15 +00:00
Daniel Stenberg
3154f04fb9
now builds and runs with GnuTLS-built libcurls too
2008-02-23 23:00:24 +00:00
Gunter Knauf
5e9c564883
fixed missing header; changed bail out from exit() to return().
...
Mentioned on the list by Michal Marek.
2008-02-21 15:02:14 +00:00
Gunter Knauf
4ae644e427
reformatted comment.
2008-02-20 12:36:35 +00:00
Gunter Knauf
d208e56b16
added read callback function in order to prevent crashs on Win32 when linked against DLL:
2008-02-20 12:33:45 +00:00
Gunter Knauf
ade0890746
fix for new codestyle.
2008-02-19 16:23:03 +00:00
Gunter Knauf
7a5596bf02
made changes to work with Win32;
...
replaced fstat() with stat() call and bail out if local file not found.
2008-02-19 16:13:52 +00:00
Gunter Knauf
1093287494
added makefile for MingW32 to build most of the samples.
2008-02-18 15:43:23 +00:00
Gunter Knauf
6398f71cc4
moved sample program defines into separate Makefile.inc so that other makefiles can pick up the defines from there.
2008-02-18 15:32:34 +00:00
Daniel Stenberg
454e840590
threaded-ssl.c is a little example that does multi-threaded downloads from
...
HTTPS sites with OpenSSL-enabled libcurl (and pthreads) and thus do the
thread-locking and things openssl-style.
2008-02-03 12:28:48 +00:00
Daniel Stenberg
e40327ba00
This is a multi threaded application that uses a progress bar to show
...
status. It uses Gtk+ to make a smooth pulse. Written by Jud Bishop
2008-01-20 11:12:11 +00:00
Daniel Stenberg
bff962398d
Andres Garcia made the examples build fine on Windows (mingw + msys) when
...
the lib was built staticly.
2007-11-17 10:22:44 +00:00
Dan Fandrich
70f10f1ac9
Add a call to curl_global_cleanup to show how to do a proper shutdown.
2007-11-07 04:53:37 +00:00
Daniel Stenberg
bbc4e05434
Andres Garcia made it build and run on windows
2007-11-05 10:07:34 +00:00
Dan Fandrich
8412d1e493
Compile samples with -DCURL_NO_OLDIES
2007-09-13 22:20:35 +00:00
Dan Fandrich
6d27647b61
Remove remaining traces of ftp3rdparty.c and mention htmltidy.c
2007-09-13 20:36:52 +00:00
Dan Fandrich
9f44a95522
Renamed several libcurl error codes and options to make them more general
...
and allow reuse by multiple protocols. Several unused error codes were
removed. In all cases, macros were added to preserve source (and binary)
compatibility with the old names. These macros are subject to removal at
a future date, but probably not before 2009. An application can be
tested to see if it is using any obsolete code by compiling it with the
CURL_NO_OLDIES macro defined.
Documented some newer error codes in libcurl-error(3)
2007-08-30 20:34:57 +00:00
Daniel Stenberg
138ca334f9
ignore all the binaries and the .deps and .libs
2007-08-17 22:33:25 +00:00
Daniel Stenberg
d0edb47896
Patrick Monnerat modified the LDAP code and approach in curl. Starting now,
...
the configure script checks for openldap and friends and we link with those
libs just like we link all other third party libraries, and we no longer
dlopen() those libraries. Our private header file lib/ldap.h was renamed to
lib/curl_ldap.h due to this. I set a tag in CVS (curl-7_17_0-preldapfix)
just before this commit, just in case.
2007-08-11 20:57:54 +00:00
Dan Fandrich
4706a93341
Fixed some more simple compile warnings in the examples.
2007-07-16 21:22:12 +00:00
Dan Fandrich
5bed99c97d
The examples don't need access to curl internal source files.
2007-07-13 21:31:44 +00:00
Dan Fandrich
49ce3e5160
Fixed some compile warnings and errors and improved portability in the
...
examples.
Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers
any longer.
2007-07-12 21:11:10 +00:00
Daniel Stenberg
4a728747e6
make it compile fine
2007-07-12 20:55:17 +00:00
Daniel Stenberg
f5a6355172
fix include path
2007-07-12 20:54:54 +00:00
Dan Fandrich
ffff8ddbef
Compile most of the example apps in docs/examples when doing a 'make check'.
2007-07-12 20:38:54 +00:00
Daniel Stenberg
e2bac4fe6f
add note about windows and dlls with CURLOPT_WRITEDATA
2007-07-06 20:14:03 +00:00
Daniel Stenberg
9ca688c8e7
James Bursa's improvement
2007-06-27 21:35:17 +00:00
Daniel Stenberg
8edbe262d9
fix little flaw that could make the transfer loop end prematurely
2007-06-27 21:29:29 +00:00
Daniel Stenberg
1afb67e31b
- Jeff Pohlmeyer improved the hiperfifo.c example to use the
...
CURLMOPT_TIMERFUNCTION callback option.
2007-05-02 13:52:38 +00:00
Gisle Vanem
605a391178
Added cvs id. Use TOPDIR variable. Updated CSOURCES.
...
Dependencies are now put in external file depend.dj.
2007-03-17 17:58:45 +00:00
Daniel Stenberg
c6ff612f6e
Frank Teo provided an updated, mostly docs changed
2006-11-19 21:55:34 +00:00
Daniel Stenberg
a03c76b228
ok stop using old and deprecated options
2006-11-08 08:49:27 +00:00
Yang Tse
609044aea2
Compiler warning fix
2006-10-29 21:19:23 +00:00
Daniel Stenberg
7575e6afc4
made the arrow for 'Send SSL data' point in the right direction!
2006-10-20 21:26:10 +00:00
Daniel Stenberg
f53347631e
Added comments about checking return code and the maxfd counter
2006-10-13 14:01:19 +00:00
Daniel Stenberg
4c04c09138
ghiper now uses the timer callback in the multi interface
2006-10-12 21:26:50 +00:00
Daniel Stenberg
083a84e5d0
repair id string
2006-10-10 19:48:24 +00:00
Daniel Stenberg
d5eb386d00
Added ghiper.c, Jeff Pohlmeyer's example code using the curl_multi_socket()
...
API with glib2
2006-10-10 19:46:57 +00:00
Daniel Stenberg
56fcf85ab6
slightly improved
2006-10-08 22:19:25 +00:00
Gisle Vanem
9e54d4c7d2
Use CSOURCES as other makefiles. Add line for dependency generation.
2006-09-13 13:51:03 +00:00
Daniel Stenberg
6df85adf3e
hiperfifo.c by Jeff Pohlmeyer
2006-09-12 11:25:00 +00:00
Daniel Stenberg
fb65080548
example code by Michael Wallner
2006-09-12 07:54:55 +00:00
Yang Tse
bc2f0c7dcb
Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows headers when compiled with Cygwin in POSIX emulation mode.
2006-07-05 23:10:37 +00:00
Daniel Stenberg
279dd6d878
typecast the number passed to CURLOPT_INFILESIZE_LARGE as a curl_off_t
2006-06-30 10:26:26 +00:00
Daniel Stenberg
d5e9041344
The new ftpuploadresume.c example by Philip Bock
2006-05-11 22:24:44 +00:00
Daniel Stenberg
80a0b81c2a
Make this code use the proper pointers
2006-05-02 09:19:31 +00:00
Daniel Stenberg
655331a91b
new little example using the new conversion callbacks added in 7.15.4
2006-04-09 08:39:08 +00:00
Daniel Stenberg
da2c124675
Frank's synctime.c example and an updated list in README
2006-02-04 18:08:54 +00:00
Daniel Stenberg
9533092511
Rene Bernhardt's corrections
2005-12-14 13:10:14 +00:00
Daniel Stenberg
ab1f5c3edd
make it compile warning-free and free() the memory before exit
2005-10-10 20:58:18 +00:00
Daniel Stenberg
49a16f7121
Theo Borm's example, as was posted here:
...
http://curl.haxx.se/mail/lib-2005-08/0163.html
2005-08-24 17:07:27 +00:00
Daniel Stenberg
9da9d00c62
fixed example since this is how the interface works now
2005-07-28 21:51:20 +00:00
Daniel Stenberg
2236ba0d20
Peteris Krumins added CURLOPT_COOKIELIST and CURLINFO_COOKIELIST, which is a
...
simple interface to extracting and setting cookies in libcurl's internal
"cookie jar". See the new cookie_interface.c example code.
2005-07-27 22:17:14 +00:00
Daniel Stenberg
e4c0a85da0
Jeremy Brown's OpenSSL thread-locking example
2005-05-09 21:12:03 +00:00
Gisle Vanem
62082293c5
Some functions are static here, but extern in libxml's
...
SAX.h. gcc doesn't like that. Rename.
2005-02-09 15:15:01 +00:00
Daniel Stenberg
2248599ae1
fix type
2005-02-04 23:53:12 +00:00
Daniel Stenberg
ab96e2d6e9
another example
2005-02-02 19:25:49 +00:00
Daniel Stenberg
6b81cf4bc9
HTML parsing example with libtidy, by Jeff Pohlmeyer
2005-02-02 19:25:37 +00:00
Daniel Stenberg
21b4105454
somewhat nicer libcurl usage
2005-01-31 20:03:01 +00:00
Daniel Stenberg
d7648d94ca
htmltitle
2005-01-31 18:23:42 +00:00
Daniel Stenberg
883343ba63
HTML <head> parsing (with libxml) example code by Lars Nilsson.
2005-01-31 18:22:40 +00:00
Daniel Stenberg
7e42cb61f7
FTP third transfer support overhaul. See CHANGES for details.
2005-01-21 09:32:32 +00:00
Daniel Stenberg
8dd799b4bd
If you give a *_LARGE option you MUST make sure that the type of the passed-in
...
argument is a curl_off_t. If you use CURLOPT_INFILESIZE (without _LARGE) you
must make sure that to pass in a type 'long' argument. */
2005-01-20 14:24:56 +00:00
Daniel Stenberg
2fe3829e5e
add a URL to an article about making Apache support PUT
2005-01-19 10:09:15 +00:00
Gisle Vanem
f0e66d8c76
Added anyauthput.exe.
2004-11-26 15:04:15 +00:00
Daniel Stenberg
3e1caa6185
HTTP "auth done right". See lib/README.httpauth
2004-11-24 16:11:35 +00:00
Daniel Stenberg
f84d2b4d36
trying a version with URLs for all function calls
2004-11-22 16:24:46 +00:00
Daniel Stenberg
4207ef3d27
removed trailing whitespace
2004-11-22 14:41:36 +00:00
Daniel Stenberg
b3572269a4
removed unused variable and trailing whitespace
2004-11-22 14:41:24 +00:00
Daniel Stenberg
097d449cc1
remove curl_ prefix from functions not present in libcurl
2004-11-22 14:07:23 +00:00
Daniel Stenberg
7f44713487
re-indented to curl style
2004-11-22 13:48:35 +00:00
Daniel Stenberg
b7a6b78e0c
renamed curl_thread to my_thread to avoid confusion
2004-11-22 13:43:52 +00:00
Daniel Stenberg
855a9eff76
add URLs in comments for all libcurl function calls
2004-11-22 13:39:23 +00:00
Daniel Stenberg
e80f566a14
added comment for windows people about READFUNCTION being needed
2004-11-21 12:42:28 +00:00
Daniel Stenberg
87753cda49
mention the openssl callbacks for SSL multithread
2004-11-16 08:49:51 +00:00
Daniel Stenberg
186f433e40
modified to not use realloc() on a NULL pointer
2004-11-02 08:26:55 +00:00
Gisle Vanem
0bfa601a9f
Open "debugit" in binary mode ("rb").
2004-10-16 13:17:15 +00:00
Gisle Vanem
a91a75355d
*** empty log message ***
2004-10-06 13:24:08 +00:00
Daniel Stenberg
39af394a1c
removed tabs and trailing whitespace from source
2004-10-06 07:50:18 +00:00
Daniel Stenberg
d736ac51c0
stripped trailing whitespace
2004-08-23 14:22:52 +00:00
Daniel Stenberg
e8b295ff7d
lost of more into on how to tweak some headers
2004-08-23 14:22:44 +00:00
Daniel Stenberg
4a4490d5f1
debug.c is a fresh new example showing how to use the DEBUGFUNCTION to get
...
lots of fine info from a transfer
2004-08-23 14:22:26 +00:00
Daniel Stenberg
cb88135220
removed trailing whitespace, indented to curl-style levels
2004-08-12 07:01:20 +00:00
Daniel Stenberg
574e911375
Another Gisle update
2004-06-30 12:34:33 +00:00
Daniel Stenberg
c81ac51e5c
Gisle's update
2004-06-29 18:43:04 +00:00
Daniel Stenberg
2e8f37aca5
Added example of how to use the upcoming support for FTP 3rd party transfers
2004-06-03 11:15:27 +00:00
Daniel Stenberg
9e987ac6a2
getinfo.c is a new tiny example that uses curl_easy_getinfo() to get the
...
content-type after a transfer.
2004-06-03 09:20:48 +00:00
Daniel Stenberg
15cd35f67f
added example that makes an upload to a file:// url
2004-05-26 09:00:03 +00:00
Daniel Stenberg
459801d6e0
strip trailing whitespace
2004-05-26 08:58:25 +00:00
Daniel Stenberg
88229a0f2a
new example proving that the debug callback works even when the multi
...
interface is used
2004-05-24 15:16:53 +00:00
Daniel Stenberg
120394cc45
remove trailing whitespace
2004-05-24 15:16:29 +00:00
Daniel Stenberg
1adfe0fe18
multi interface, debug callback
2004-05-24 15:12:37 +00:00
Daniel Stenberg
a94e117ede
language!
2004-05-19 09:09:31 +00:00
Daniel Stenberg
662cb30372
Set CURLOPT_USERAGENT too
2004-05-19 09:08:19 +00:00
Daniel Stenberg
47d52d4eca
added https.c
2004-05-13 08:23:09 +00:00
Daniel Stenberg
4973b0f88a
basic https fetching script
2004-05-13 08:22:40 +00:00
Daniel Stenberg
9d99af5329
if select returns -1, bail out of the loop
2004-04-02 06:40:31 +00:00
Daniel Stenberg
6b33a5f954
use the correct struct
2004-03-28 21:41:10 +00:00
Daniel Stenberg
7f679c3da3
Ken Rastatter's fixes to improve portability of this example:
...
These minor changes remove portability issues with the this example and allow
it to run on Win32. Specifically:
* The use of pthread_create() has been replaced by g_thread_create(). This
removes the dependency on the pthreads library. Since this is an example using
GTK+, g_thread_create() is available as it is a part of glibc.
* The CURLOPT_FILE option is now referred to by its "newer name"
CURLOPT_WRITEDATA.
* The use of CURLOPT_WRITEFUNCTION has been added. As described in the docs,
this avoids the crashes when using a DLL under Win32.
* The output file has been renamed from "/tmp/test.curl" to "test.curl". It's
unlikely that there is a /tmp when in Win32 and other examples in libcurl
write their output files to the working directory.
2004-02-09 07:12:33 +00:00
Daniel Stenberg
b60e0fa97e
David J Meyer's large file support.
2004-01-05 22:29:29 +00:00
Daniel Stenberg
36a2fac79f
typecast the size to long for platforms where st_size is off_t
2003-12-18 18:05:10 +00:00
Daniel Stenberg
f4e987cd19
clarified the URL part based on the problems Martin Hilpert had
2003-12-18 07:52:31 +00:00
Daniel Stenberg
821302bcf3
removed old version checks
2003-12-08 14:14:26 +00:00
Daniel Stenberg
f68219ddaa
use the newer option names
2003-12-08 14:13:19 +00:00
Daniel Stenberg
cc48658564
cut off old crappy win32 comments and use the proper global_init instead
...
also removed very old "require libcurl older than blablabla"
2003-11-19 08:21:34 +00:00
Daniel Stenberg
79e4aee185
cleaned up
2003-11-19 08:20:13 +00:00
Daniel Stenberg
4d28012468
remove the wrong win32 comment and use global_init
2003-11-19 08:19:20 +00:00
Daniel Stenberg
24836d30f5
Peter Sylvester's curlx.c code example added
2003-10-03 13:46:27 +00:00
Daniel Stenberg
a95df8246b
Henrik Storner's rewrite that includes a nice usage of curl_multi_info_read()
2003-08-28 11:21:14 +00:00
Daniel Stenberg
d3b81ea3f7
Vincent Sanders's massive update of this example code. One could argue
...
weather this is still an "example" or a whole new API layer! ;-)
2003-08-11 21:34:52 +00:00
Daniel Stenberg
d5043133e6
Gisle Vanem made curl build with djgpp on DOS.
2003-05-21 08:08:48 +00:00
Daniel Stenberg
662c659220
missing semicolon, by Gisle Vanem
2003-05-20 12:44:55 +00:00
Daniel Stenberg
5334a58f9b
Andy Cedilnik's corrections
2003-03-17 12:38:08 +00:00
Daniel Stenberg
ebe5191b63
no the data is not freed, this is left for the app to do when needed
2003-03-10 17:01:11 +00:00
Daniel Stenberg
173b35eaf8
made it work
...
made it cause less compiler warnings
made it require 7.9.7 to build
2003-01-27 10:25:20 +00:00
Daniel Stenberg
cc09e9d4c2
fix
2003-01-09 11:43:08 +00:00
Daniel Stenberg
16e0da2c4b
call curl_multi_perform() correctly
2003-01-09 11:42:07 +00:00
Daniel Stenberg
a39cdc80b7
Jeff pointed out this flaw in the example
2002-12-03 12:34:43 +00:00
Daniel Stenberg
9e1123debe
don't use curl.haxx.se
2002-11-22 07:39:15 +00:00
Daniel Stenberg
c7d517f6d2
re-order the compiler arguments to keep more compiler happy
2002-08-14 23:01:14 +00:00
Daniel Stenberg
c74cb59e08
added comment about CURLOPT_WRITEDATA for directing contents somewhere
2002-08-12 11:36:48 +00:00
Daniel Stenberg
b5dd257427
makes things better
2002-08-08 23:05:50 +00:00