summaryrefslogtreecommitdiff
path: root/docs/examples/synctime.c
Commit message (Collapse)AuthorAgeFilesLines
* code style: use spaces around plusesDaniel Stenberg2017-09-111-2/+2
|
* code style: use spaces around equals signsDaniel Stenberg2017-09-111-3/+3
|
* checksrc: stricter no-space-before-paren enforcementDaniel Stenberg2016-12-131-3/+3
| | | | In order to make the code style more uniform everywhere
* examples: adhere to curl code styleDaniel Stenberg2016-02-111-30/+29
| | | | | | | | | | 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.
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* examples: added descriptionsDaniel Stenberg2016-01-041-1/+5
|
* synctime.c: added own user-agent string.Guenter Knauf2014-12-131-4/+3
|
* synctime.c: removed another timeserver URL.Guenter Knauf2014-12-131-3/+2
| | | | worldtimeserver.com seems also no longer available.
* synctime.c: fixed timeserver URLs.Guenter Knauf2014-12-131-3/+3
| | | | | | | For getting the date header its not necessary to access special pages or even CGI scripts - all pages including the main index reply with the date header, therefore shortened URLs to domain. Removed worldtime.com; added pool.ntp.org.
* synctime.c: fixed user-agent setting.Guenter Knauf2014-12-091-4/+7
| | | | | | Some websites meanwhile refuse to reply to requests from ancient browsers like IE6, therefore I've comment out this setting, but also fixed the string to now fake IE8 if someone enables it.
* Fixed scanf format for WORD = unsigned short.Guenter Knauf2011-09-231-1/+1
|
* sources: update source headersDaniel Stenberg2011-03-101-2/+15
| | | | | | All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers.
* remove the CVSish $Id$ linesDaniel Stenberg2010-03-241-1/+0
|
* Fixed a surprising number of example programs that were passing int argumentsDan Fandrich2008-05-221-1/+1
| | | | to curl_easy_setopt instead of long.
* Fixed some compile warnings and errors and improved portability in theDan Fandrich2007-07-121-4/+4
| | | | | | examples. Removed ftp3rdparty.c since libcurl doesn't support 3rd party FTP transfers any longer.
* Frank Teo provided an updated, mostly docs changedDaniel Stenberg2006-11-191-2/+15
|
* Prevent definition of HAVE_WINxxx_H symbols and avoid inclusion of Windows ↵Yang Tse2006-07-051-0/+2
| | | | headers when compiled with Cygwin in POSIX emulation mode.
* Frank's synctime.c example and an updated list in READMEDaniel Stenberg2006-02-041-0/+339