Kamil Dudka
1d173f3413
docs/examples: do not wait when no transfers are running
...
Closes #2948
2018-09-10 12:23:23 +02:00
Marcel Raad
60776a0515
curl-compilers: enable -Wbad-function-cast on GCC
...
This warning used to be enabled only for clang as it's a bit stricter
on GCC. Silence the remaining occurrences and enable it on GCC too.
Closes https://github.com/curl/curl/pull/2747
2018-08-21 18:53:45 +02:00
Jay Satiro
0898331474
examples/ephiperfifo: checksrc compliance
2018-07-29 15:06:00 -04:00
Josh Bialkowski
7f5e570616
docs/examples: add hiperfifo example using linux epoll/timerfd
...
Closes #2804
2018-07-28 22:34:54 +02:00
Daniel Stenberg
1f6e38e6af
examples/crawler.c: move #ifdef to column 0
...
Apparently the C => HTML converter on the web site doesn't quite like it
otherwise.
Reported-by: Jeroen Ooms
2018-07-11 11:47:21 +02:00
Marcel Raad
5bd8c389a3
examples: fix -Wformat warnings
...
When size_t is not a typedef for unsigned long (as usually the case on
Windows), GCC emits -Wformat warnings when using lu and lx format
specifiers with size_t. Silence them with explicit casts to
unsigned long.
Closes https://github.com/curl/curl/pull/2721
2018-07-09 18:08:27 +02:00
Jeroen Ooms
74e0bde773
example/crawler.c: simple crawler based on libxml2
...
Closes #2706
2018-07-05 15:52:31 +02:00
Viktor Szakats
4bd91bc474
spelling fixes
...
Detected using the `codespell` tool (version 1.13.0).
Also secure and fix an URL.
2018-06-03 12:14:45 +00:00
Daniel Stenberg
cb529b713f
checksrc: make sure sizeof() is used *with* parentheses
...
... and unify the source code to adhere.
Closes #2563
2018-05-21 23:21:47 +02:00
Daniel Stenberg
ccf85d4c2b
examples/progressfunc: make it build on older libcurls
...
This example was changed in ce2140a8c1
to use the new microsecond based
getinfo option. This change makes it conditionally keep using the older
option so that the example still builds with older libcurl versions.
Closes #2584
2018-05-18 13:42:18 +02:00
Philip Prindeville
ce2140a8c1
getinfo: add microsecond precise timers for various intervals
...
Provide a set of new timers that return the time intervals using integer
number of microseconds instead of floats.
The new info names are as following:
CURLINFO_APPCONNECT_TIME_T
CURLINFO_CONNECT_TIME_T
CURLINFO_NAMELOOKUP_TIME_T
CURLINFO_PRETRANSFER_TIME_T
CURLINFO_REDIRECT_TIME_T
CURLINFO_STARTTRANSFER_TIME_T
CURLINFO_TOTAL_TIME_T
Closes #2495
2018-05-17 13:41:04 +02:00
Rikard Falkeborn
13505dcb55
examples: Fix format specifiers
...
Closes #2561
2018-05-14 09:43:15 +02:00
Daniel Stenberg
1778135a9f
examples/http2-upload: expand buffer to avoid silly warning
...
http2-upload.c:135:44: error: ‘%02d’ directive output may be truncated
writing between 2 and 11 bytes into a region of size between 8 and 17
2018-04-24 14:14:23 +02:00
Daniel Stenberg
300f40eb99
examples/sftpuploadresume: typecast fseek argument to long
...
/docs/examples/sftpuploadresume.c:102:12: warning: conversion to 'long
int' from 'curl_off_t {aka long long int}' may alter its value
2018-04-24 14:11:53 +02:00
Daniel Gustafsson
94400f32e9
all: Refactor malloc+memset to use calloc
...
When a zeroed out allocation is required, use calloc() rather than
malloc() followed by an explicit memset(). The result will be the
same, but using calloc() everywhere increases consistency in the
codebase and avoids the risk of subtle bugs when code is injected
between malloc and memset by accident.
Closes https://github.com/curl/curl/pull/2497
2018-04-15 03:00:37 -04:00
Jay Satiro
817d1c0106
examples/sftpuploadresmue: Fix Windows large file seek
...
- Use _fseeki64 instead of fseek (long) to seek curl_off_t in Windows.
- Use CURL_FORMAT_CURL_OFF_T specifier instead of %ld to print
curl_off_t.
Caught by Marc's CI builds.
2018-04-07 16:03:55 -04:00
Daniel Stenberg
a26d11b8e1
gitignore: ignore more generated files
2018-03-24 00:24:24 +01:00
Jay Satiro
712c916d94
examples/hiperfifo: checksrc compliance
2018-03-20 03:12:35 -04:00
Philip Prindeville
9434194be8
examples/hiperfifo.c: improved
...
* use member struct event’s instead of pointers to alloc’d struct
events
* simplify the cases for the mcode_or_die() function via macros;
* make multi_timer_cb() actually do what the block comment says it
should;
* accept a “stop” command on the FIFO to shut down the service;
* use cleaner notation for unused variables than the (void) hack;
* allow following redirections (304’s);
2018-03-16 16:01:01 +01:00
luz.paz
236402fc2d
cleanup: misc typos in strings and comments
...
Found via `codespell`
Closes #2389
2018-03-16 11:08:31 +01:00
Daniel Stenberg
8b0b1a3088
build: get CFLAGS (including -werror) used for examples and tests
...
... so that the CI and more detects compiler warnings/errors properly!
Closes #2337
2018-03-04 19:46:26 +01:00
Viktor Szakats
7e35eb7729
spelling fixes
...
Detected using the `codespell` tool.
Also contains one URL protocol upgrade.
Closes https://github.com/curl/curl/pull/2334
2018-02-23 23:29:01 +00:00
Sergio Borghese
e77f0e5a5a
examples/sftpuploadresume: resume upload via CURLOPT_APPEND
...
URL: https://curl.haxx.se/mail/lib-2018-02/0072.html
2018-02-20 09:31:06 +01:00
Daniel Stenberg
da07dbb869
examples/url2file.c: add missing curl_global_cleanup() call
...
Reported-by: XhstormR on github
Fixes #2245
2018-01-18 17:10:34 +01:00
Jay Satiro
d4e40f0690
scripts: allow all perl scripts to be run directly
...
- Enable execute permission (chmod +x)
- Change interpreter to /usr/bin/env perl
Closes https://github.com/curl/curl/pull/2222
2018-01-07 15:42:11 -05:00
Jay Satiro
a0f3eaf25d
examples/cacertinmem: ignore cert-already-exists error
...
- Ignore X509_R_CERT_ALREADY_IN_HASH_TABLE errors in the CTX callback
since it's possible the cert may have already been loaded by libcurl.
- Remove the EXAMPLE code in the CURLOPT_SSL_CTX_FUNCTION.3 doc.
Instead have it direct the reader to this cacertinmem.c example.
- Fix the CA certificate to use the right CA for example.com, Digicert.
Bug: https://curl.haxx.se/mail/lib-2017-12/0057.html
Reported-by: Thomas van Hesteren
Closes https://github.com/curl/curl/pull/2182
2017-12-26 02:08:35 -05:00
Mattias Fornander
b437557896
examples/rtsp: fix error handling macros
...
Closes https://github.com/curl/curl/pull/2185
2017-12-22 02:59:08 -05:00
Daniel Stenberg
7ef0c2d861
examples/smtp-mail.c: use separate defines for options and mail
...
... to make it clearer that the options want address-only, while the
headers in an email can also have the real name.
Assisted-by: Sean MacLennan
2017-12-12 15:28:05 +01:00
Daniel Stenberg
bb0ca2d443
examples: move threaded-shared-conn.c to the "complicated" ones
...
... due it relying on pthreads to link.
2017-12-06 14:49:58 +01:00
Daniel Stenberg
415b8dff8e
threaded-shared-conn.c: fixed typo in commenta
2017-12-05 23:35:08 +01:00
Daniel Stenberg
5254d8bf27
threaded-shared-conn.c: new example
2017-12-05 23:31:47 +01:00
Daniel Stenberg
744ee58386
examples/xmlstream.c: don't switch off CURL_GLOBAL_SSL
...
Reported-by: Dima Tisnek
2017-12-01 07:52:24 +01:00
Daniel Stenberg
ed22d8654b
examples/rtsp: clear RANGE again after use
...
Fixes #2106
Reported-by: youngchopin on github
2017-11-23 08:06:44 +01:00
fmmedeiros
297516e12c
examples/curlx: Fix code style
...
- Add braces around multi-line if statement.
Closes https://github.com/curl/curl/pull/2096
2017-11-18 14:04:33 -05:00
Daniel Stenberg
3d1280866a
examples: add shared-connection-cache
2017-11-09 11:07:44 +01:00
Daniel Stenberg
edd1f45c9f
test1554: verify connection cache sharing
2017-11-09 11:07:44 +01:00
Daniel Stenberg
c3e58d93de
examples: bring back curl_formadd-using examples
...
... now with a -formadd suffix. While the new mime API is introduced in
7.56.0 we must acknowledge that lots of users can't upgrade their curl
versions immediately.
2017-10-03 07:59:55 +02:00
Patrick Monnerat
ee56fdb691
form/mime: field names are not allowed to contain zero-valued bytes.
...
Also suppress length argument of curl_mime_name() (names are always
zero-terminated).
2017-09-22 01:08:29 +01:00
Marcel Raad
5d916944ae
examples/post-callback: use long for CURLOPT_POSTFIELDSIZE
...
Otherwise, typecheck-gcc.h warns on MinGW-w64.
2017-09-21 20:07:24 +02:00
Daniel Stenberg
20acb58a38
code style: use space after semicolon
2017-09-12 09:50:24 +02:00
Daniel Stenberg
e5743f08e7
code style: use spaces around pluses
2017-09-11 09:29:50 +02:00
Daniel Stenberg
6b84438d9a
code style: use spaces around equals signs
2017-09-11 09:29:50 +02:00
Viktor Szakats
25fc694a41
examples/mime: minor example code fixes
2017-09-05 10:05:27 +00:00
Viktor Szakats
841a09ea19
mime: use CURL_ZERO_TERMINATED in examples
...
and some minor whitespace fixes
2017-09-04 13:58:10 +00:00
Daniel Stenberg
12e789391d
examples/post-callback: stop returning one byte at a time
...
... since people copy and paste code from this example and thus they get
an inefficient POST operation without a good reason and sometimes
without understanding why.
Instead this now returns as much data as possible.
2017-09-04 11:42:00 +02:00
Patrick Monnerat
1a3f4c1991
mime: remove support "-" stdin pseudo-file name in curl_mime_filedata().
...
This feature is badly supported in Windows: as a replacement, a caller has
to use curl_mime_data_cb() with fread, fseek and possibly fclose
callbacks to process opened files.
The cli tool and documentation are updated accordingly.
The feature is however kept internally for form API compatibility, with
the known caveats it always had.
As a side effect, stdin size is not determined by the cli tool even if
possible and this results in a chunked transfer encoding. Test 173 is
updated accordingly.
2017-09-03 14:45:43 +01:00
Patrick Monnerat
3baf36edf6
mime: tests and examples.
...
Additional mime-specific tests.
Existing tests updated to reflect small differences (Expect: 100-continue,
data size change due to empty lines, etc).
Option -F headers= keyword added to tests.
test1135 disabled until the entry point order change is resolved.
New example smtp-mime.
Examples postit2 and multi-post converted from form API to mime API.
2017-09-02 19:08:45 +01:00
Kamil Dudka
7ec797b13a
examples/sslbackend.c: fix failure of 'make checksrc'
...
./sslbackend.c:58:3: warning: else after closing brace on same line (BRACEELSE)
} else if(isdigit(*name)) {
^
./sslbackend.c:62:3: warning: else after closing brace on same line (BRACEELSE)
} else
^
2017-08-30 14:16:35 +02:00
Johannes Schindelin
a34e141c09
docs/examples: demonstrate how to select SSL backends
...
The newly-introduced curl_global_sslset() function deserves to be
show-cased.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2017-08-28 14:56:59 +02:00
Daniel Stenberg
e37ab949b2
examples/threaded-ssl: mention that this is for openssl before 1.1
2017-08-25 08:15:59 +02:00
Jay Satiro
d18941ea17
examples/ftpuploadresume: checksrc compliance
2017-08-16 14:44:50 -04:00
Daniel Stenberg
adc35a4f19
examples/ftpuploadresume.c: use portable code
...
... converted from the MS specific _snscanf()
2017-08-14 14:01:29 +02:00
Marcel Raad
ce2cc568f8
Makefile.m32: enable -W for MinGW32 build
...
The configure-based build also has this in addition to -Wall.
Closes https://github.com/curl/curl/pull/1578
2017-06-16 22:32:22 +02:00
Daniel Stenberg
73a2fcea0b
includes: remove curl/curlbuild.h and curl/curlrules.h
...
Rely entirely on curl/system.h now.
Introduced in Aug 2008 with commit 14240e9e10
. Now gone.
Fixes #1456
2017-06-14 11:07:33 +02:00
Ryuichi KAWAMATA
bc164de7b3
examples/multi-uv.c: fix deprecated symbol
...
Closes #1557
2017-06-08 23:23:59 +02:00
Daniel Stenberg
efc7c1d86f
typecheck-gcc.h: check CURLINFO_CERTINFO
...
... and update the certinfo.c example accordingly.
Fixes https://github.com/curl/curl/issues/846
2017-06-01 21:06:09 +02:00
Daniel Stenberg
c5de7f50f7
examples/externalsocket.c: s/closesocket/closecb
...
... since closesocket is a function in WinSock.
Reported-by: Marcel Raad
Bug: 55fcb84859 (co)
mmitcomment-22347818
2017-05-31 23:22:46 +02:00
Daniel Stenberg
501b9ebe92
examples/sampleconv.c: indent changes, made callbacks static
2017-05-31 11:56:53 +02:00
Daniel Stenberg
55fcb84859
example/externalsocket.c: make it use CLOSESOCKETFUNCTION too
2017-05-31 11:56:53 +02:00
Marcel Raad
b4d87f54d6
examples: fix Wimplicit-fallthrough warnings
...
This is contained in -Wextra with GCC 7.
2017-05-24 11:56:38 +02:00
Daniel Stenberg
e5491e0f9c
ghiper.c/hiperfifo.c: add comment about missing timer functionality
...
It takes someone to read up on the APIs of these libraries to figure out
how to do this correctly.
Reported-by: Michael Kaufmann
Closes #1253
2017-05-19 14:25:16 +02:00
Daniel Stenberg
d6bb1f1d56
asiohiper.cpp / evhiperfifo.c: deal with negative timerfunction input
...
That means delete the timer.
Reported-by: Michael Kaufmann
Ref: #1253
2017-05-19 14:16:37 +02:00
Marcel Raad
77b90997dd
cookie_interface: fix -Wcomma warning
...
clang 5.0 complains:
possible misuse of comma operator here [-Wcomma]
2017-05-11 10:04:01 +02:00
Marcel Raad
d99acd937a
sendrecv: fix MinGW-w64 warning
...
The first argument to select is an int, while curl_socket_t is
unsigned long long when using WinSock. It's ignored anyway [1].
[1] https://msdn.microsoft.com/en-us/library/windows/desktop/ms740141.aspx
2017-05-07 22:14:28 +02:00
Marcel Raad
35311b22b9
anyauthput: remove unused code
...
The definition of TRUE was introduced in
4a728747e6
and is not used anymore since
e664cd5826
.
The usage of intptr_t was removed in
32e38b8f42
.
2017-05-01 21:51:02 +02:00
Dan Fandrich
6cba8dacea
examples: fixed too long line and too long string warnings
2017-05-01 09:16:12 +02:00
Marcel Raad
c23177d5e9
examples: declare TU-local variables static
...
This fixes missing-variable-declarations warnings when building with
clang.
2017-04-30 23:29:31 +02:00
Daniel Stenberg
7543f28ad2
cookie_interface.c: changed the other domain to example.com too
2017-04-27 00:30:34 +02:00
Daniel Stenberg
afe05ee2ee
cookie_interface.c: fix cookie domain so the example works
2017-04-27 00:27:59 +02:00
Daniel Stenberg
e7f8ac1945
examples: ftpuploadfrommem.c
...
Uploads data to an FTP site, directly from memory.
Closes #1451
2017-04-25 20:53:46 +02:00
Jay Satiro
041ded0459
examples/fopen: checksrc compliance
2017-03-28 02:55:14 -04:00
klemens
f7df67cff0
spelling fixes
...
Closes #1356
2017-03-26 23:56:23 +02:00
Edward Kimmel
99d708a016
asiohiper: make sure socket is open in event_cb
...
Send curl_socket_t to event_cb and make sure it hasn't been closed yet.
Closes https://github.com/curl/curl/pull/1318
2017-03-23 22:58:29 +01:00
Daniel Stenberg
26baf39f3d
examples: comment typos in http2 examples
2017-03-21 12:55:46 +01:00
Jay Satiro
889ca45ab8
examples/multi-uv: checksrc compliance
2017-02-20 00:52:16 -05:00
Michael Kaufmann
4ddf9798ab
docs: fix timeout handling in multi-uv example
2017-02-18 18:09:17 +01:00
Daniel Stenberg
bef0d00110
examples/multithread.c: link to our multi-thread docs
...
... instead of the OpenSSL mutex page.
2017-02-09 16:16:21 +01:00
Daniel Stenberg
3a4326efd5
usercertinmem.c: improve the short description
2017-01-18 08:09:09 +01:00
Daniel Stenberg
a41e8592d6
examples: make the C++ examples follow our code style too
...
At least mostly, not counting // comments.
2017-01-08 16:39:41 +01:00
Aulddays
ed2fcd5428
asiohiper: improved socket handling
...
libcurl requires CURLMOPT_SOCKETFUNCTION to KEEP watching socket events
and notify back. Modify event_cb() to continue watching events when
fired.
Fixes #1191
Closes #1192
Fixed-by: Mingliang Zhu
2017-01-08 16:39:36 +01:00
Michael Kaufmann
afff64dbcd
curl_easy_recv: Improve documentation and example program
...
Follow-up to 82245ea
: Fix the example program sendrecv.c (handle
CURLE_AGAIN, handle incomplete send). Improve the documentation
for curl_easy_recv() and curl_easy_send().
Reviewed-by: Frank Meier
Assisted-by: Jay Satiro
See https://github.com/curl/curl/pull/1134
2016-12-18 12:56:23 +01:00
Daniel Stenberg
1c3e8bbfed
checksrc: warn for assignments within if() expressions
...
... they're already frowned upon in our source code style guide, this
now enforces the rule harder.
2016-12-14 01:29:44 +01:00
Daniel Stenberg
b228d2952b
checksrc: stricter no-space-before-paren enforcement
...
In order to make the code style more uniform everywhere
2016-12-13 23:39:11 +01:00
Daniel Stenberg
6832c1d4b2
checksrc: move open braces to comply with function declaration style
2016-11-24 23:58:22 +01:00
Daniel Stenberg
8657c268e1
checksrc: white space edits to comply to stricter checksrc
2016-11-24 23:58:22 +01:00
Daniel Stenberg
dbadaebfc4
checksrc: code style: use 'char *name' style
2016-11-24 23:58:22 +01:00
Daniel Stenberg
dfcdaaba37
examples/fileupload.c: fclose the file as well
2016-11-08 23:00:43 +01:00
Daniel Stenberg
27302abb94
s/cURL/curl
...
We're mostly saying just "curl" in lower case these days so here's a big
cleanup to adapt to this reality. A few instances are left as the
project could still formally be considered called cURL.
2016-11-07 10:36:23 +01:00
Daniel Stenberg
c8e6e60b40
docs: shorten and simplify the top comment in multi-uv.c
...
and change URL to use https
2016-11-03 12:44:38 +01:00
Andrei Sedoi
82b6fd4112
docs: handle CURL_POLL_INOUT in multi-uv example
2016-11-03 12:32:14 +01:00
Andrei Sedoi
e6882ce484
docs: multi-uv: don't use CURLMsg after cleanup
2016-11-03 12:32:14 +01:00
Andrei Sedoi
b1aeed302d
docs: remove unused variables in multi-uv example
2016-11-03 12:32:14 +01:00
Andrei Sedoi
50ef91b59a
docs: fix req->data in multi-uv example
...
Closes #1088
2016-10-27 09:14:24 +02:00
Jay Satiro
45c1c54c42
examples/imap-append: Set size of data to be uploaded
...
Prior to this commit this example failed with error
'Cannot APPEND with unknown input file size'.
Bug: https://github.com/curl/curl/issues/1008
Reported-by: lukaszgn@users.noreply.github.com
Closes https://github.com/curl/curl/pull/1011
2016-09-18 02:19:17 -04:00
Daniel Stenberg
a07727005a
make/checksrc: use $srcdir, not $top_srcdir
2016-04-19 08:56:06 +02:00
Daniel Stenberg
ab493af731
checksrc/makefile.am: use $top_srcdir to find source files
...
... to properly support out of source tree builds.
2016-04-18 14:58:11 +02:00
Daniel Stenberg
6ddab23fb1
docs/examples: remove spurious white spaces all over
...
... to please the new, slightly picker, checksrc.pl
2016-04-03 22:52:34 +02:00
Daniel Stenberg
530234b325
curlx.c: use more curl style code
2016-03-06 16:54:58 +01:00
Daniel Stenberg
435f6bcc86
examples/make: add 'checksrc' target
2016-02-17 15:01:38 +01:00
Daniel Stenberg
e8748bc1d7
10-at-a-time: typecast the argument passed to sleep()
2016-02-17 15:01:21 +01:00
Daniel Stenberg
e624714cad
externalsocket.c: fix compiler warning for fwrite return type
2016-02-17 15:00:54 +01:00
Daniel Stenberg
32e38b8f42
anyauthput.c: fix compiler warnings
2016-02-17 15:00:34 +01:00
Daniel Stenberg
0c671a1501
simplessl.c: warning: while with space
2016-02-17 15:00:18 +01:00
Daniel Stenberg
9ae7030cef
curlx.c: i2s_ASN1_IA5STRING() clashes with an openssl function
...
Reported-By: Gisle Vanem
2016-02-17 14:51:31 +01:00
Daniel Stenberg
d202fbcc00
examples: fix some compiler warnings
2016-02-11 10:21:09 +01:00
Daniel Stenberg
888e4b6821
simplessl.c: fix my breakage
2016-02-11 10:20:48 +01:00
Daniel Stenberg
3a6563d668
examples: adhere to curl code style
...
All plain C examples now (mostly) adhere to the curl code style. While
they are only examples, they had diverted so much and contained all
sorts of different mixed code styles by now. Having them use a unified
style helps users and readability. Also, as they get copy-and-pasted
widely by users, making sure they're clean and nice is a good idea.
573 checksrc warnings were addressed.
2016-02-11 09:44:45 +01:00
Daniel Stenberg
936d8f07df
examples/cookie_interface.c: add cleanup call
...
cleaning up handles is a good idea as we leak memory otherwise
Also, line wrapped before 80 columns.
2016-02-11 08:44:59 +01:00
Gisle Vanem
c71b6a2795
examples/asiohiper: Avoid function name collision on Windows
...
closesocket => close_socket
Winsock already has the former.
Bug: https://curl.haxx.se/mail/lib-2016-02/0016.html
2016-02-06 17:04:38 -05:00
Gisle Vanem
6f702ebaa2
examples/htmltitle: Use _stricmp on Windows
...
Bug: https://curl.haxx.se/mail/lib-2016-02/0017.html
2016-02-06 17:02:55 -05:00
Viktor Szakats
b4f595bde4
URLs: change more http to https
2016-02-02 22:29:47 -05:00
Daniel Stenberg
4af40b3646
URLs: change all http:// URLs to https://
2016-02-03 00:19:02 +01:00
Daniel Stenberg
e400a89b18
getredirect.c: fix variable name
...
Reported-by: Bernard Spil
2016-01-27 09:35:55 +01:00
Daniel Stenberg
06bf874bbc
examples/Makefile.inc: specify programs without .c!
2016-01-27 08:30:04 +01:00
Daniel Stenberg
1d15a509dd
progressfunc.c: spellfix description
2016-01-04 18:49:10 +01:00
Daniel Stenberg
a3b8a9e036
docs/examples/multi-app.c: fix bad desc formatting
2016-01-04 15:35:16 +01:00
Daniel Stenberg
2e503441ed
examples: added descriptions
2016-01-04 15:34:05 +01:00
Daniel Stenberg
e45059214c
example/simple.c: add description
2016-01-04 15:12:37 +01:00
Daniel Stenberg
1c9298ff1b
getredirect.c: a new example
2016-01-04 15:12:37 +01:00
Daniel Stenberg
a47137c4a5
docs/examples: gitignore some more built examples
2015-12-01 09:09:04 +01:00
Daniel Stenberg
99d17a5e2b
examples/README: cut out the incomplete list
...
... and add a generic explanation for them instead. Each example file
should contain its own description these days.
2015-11-25 10:49:22 +01:00
Steve Holme
06b288a72d
examples: Added website parse-able descriptions to the e-mail examples
2015-11-22 11:55:10 +00:00
Steve Holme
c90e348579
examples: Fixed compilation warnings
...
pop3-multi.c:96:5: warning: implicit declaration of function 'memset'
imap-multi.c:96:5: warning: implicit declaration of function 'memset'
http2-download.c:226:5: warning: implicit declaration of function 'memset'
http2-upload.c:290:5: warning: implicit declaration of function 'memset'
http2-upload.c:290:5: warning: implicit declaration of function 'memset'
2015-11-21 01:47:02 +00:00
Daniel Stenberg
5fecdc26f7
copyrights: update Gisle Vanem's email
2015-10-20 13:33:01 +02:00
rouzier
b1d55997e5
hiperfifo: fix the pointer passed to WRITEDATA
...
Closes https://github.com/bagder/curl/pull/471
2015-10-04 17:16:14 -04:00
Viktor Szakats
9ee40ce2ab
build: refer to fixed libidn versions
...
closes #371
2015-08-10 23:20:18 +02:00
Jay Satiro
8f0178a56b
examples: Fix typo in multi-single.c
2015-07-11 02:32:53 -04:00
Daniel Stenberg
c00b18d540
examples: provide <DESC> sections
2015-07-01 11:43:12 +02:00
Daniel Stenberg
bf445b6e12
http2-serverpush.c: example code
2015-06-24 23:44:42 +02:00
Daniel Stenberg
0e7d76d6a8
examples: more descriptions
2015-06-18 11:38:54 +02:00
Daniel Stenberg
26583a62ab
examples: add descriptions with <DESC>
...
Using this fixed format for example descriptions, we can generate a
better list on the web site.
2015-06-18 10:17:02 +02:00
Daniel Stenberg
eaeeed2e8f
fopen.c: fix a few compiler warnings
2015-06-08 13:47:33 +02:00
Ville Skyttä
56b7663f73
docs: Spelling fixes
2015-06-08 13:43:31 +02:00
Jay Satiro
3013bb6b1c
cookie: Stop exporting any-domain cookies
...
Prior to this change any-domain cookies (cookies without a domain that
are sent to any domain) were exported with domain name "unknown".
Bug: https://github.com/bagder/curl/issues/292
2015-06-03 21:48:47 -04:00
Daniel Stenberg
9f5dcab83d
http2-upload.c: use PIPEWAIT for playing HTTP/2 better
2015-06-01 08:46:18 +02:00
Daniel Stenberg
41db5aed7a
http2-download: check for CURLPIPE_MULTIPLEX properly
...
Bug: http://curl.haxx.se/mail/lib-2015-06/0001.html
Reported-by: Rafayel Mkrtchyan
2015-06-01 08:45:30 +02:00
Daniel Stenberg
f348a6b4ab
dist: add the http2 examples
2015-05-28 16:04:13 +02:00
Daniel Stenberg
d1b1d782f5
http2 examples: clean up some comments
2015-05-28 16:04:00 +02:00
Daniel Stenberg
e57f08863a
examples: added two programs doing multiplexed HTTP/2
2015-05-28 15:58:34 +02:00
Viktor Szakats
3d38a38012
build: bump version in default nghttp2 paths
2015-05-19 07:42:16 +02:00
Viktor Szakats
6a61285909
build: update depedency versions, urls, example makefiles
...
- update default versions of dependencies (except for rare/old platforms)
- update urls
- sync examples makefiles with main ones
- remove line ending space
2015-04-30 08:29:00 +02:00
Markus Elfring
29c655c0a6
Bug #149 : Deletion of unnecessary checks before calls of the function "free"
...
The function "free" is documented in the way that no action shall occur for
a passed null pointer. It is therefore not needed that a function caller
repeats a corresponding check.
http://stackoverflow.com/questions/18775608/free-a-null-pointer-anyway-or-check-first
This issue was fixed by using the software Coccinelle 1.0.0-rc24.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2015-03-16 12:13:56 +01:00
Steve Holme
4c8a053855
sepheaders.c: Applied curl oding standards
2014-12-31 11:20:41 +00:00
Julien Nabet
8a3c0fbed1
sepheaders.c: Fixed resource leak on failure
2014-12-31 11:14:22 +00:00
Steve Holme
a9eadc9f91
asiohiper.cpp: No need to initialise members of ConnInfo
...
...as calloc() automatically clears the area of memory with zeros.
2014-12-27 12:01:13 +00:00
Steve Holme
193ba7b46e
asiohiper.cpp: Updated for curl coding standards
...
...with the exception of the start of block statement curly brackets.
2014-12-27 12:01:11 +00:00
Steve Holme
151ae59436
code/docs: Use correct case for IPv4 and IPv6
...
For consistency, as we seem to have a bit of a mixed bag, changed all
instances of ipv4 and ipv6 in comments and documentations to use the
correct case.
2014-12-27 11:31:55 +00:00
Steve Holme
1abe65d928
code/docs: Use Unix rather than UNIX to avoid use of the trademark
...
Use Unix when generically writing about Unix based systems as UNIX is
the trademark and should only be used in a particular product's name.
2014-12-26 21:42:44 +00:00
Guenter Knauf
c0fc9066a9
synctime.c: added own user-agent string.
2014-12-13 15:02:30 +01:00
Guenter Knauf
157c9752d5
synctime.c: removed another timeserver URL.
...
worldtimeserver.com seems also no longer available.
2014-12-13 13:43:19 +01:00