summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* http: assume data EOF if the connection terminatesFelix Fietkau2016-01-231-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: fix progress bar initialization with -O-Felix Fietkau2016-01-231-1/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: fix processing server http data separated by \n instead of \r\nFelix Fietkau2016-01-231-6/+11
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: add proper error handling to uclient_http_redirect()Felix Fietkau2016-01-233-8/+20
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: allow overwriting files if -O was usedFelix Fietkau2016-01-211-1/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: fix short command line option for timeoutFelix Fietkau2016-01-201-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: fix connection close handling on authFelix Fietkau2016-01-201-2/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add missing newline after final progress bar updateFelix Fietkau2016-01-191-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* core: fix unused but set variableFelix Fietkau2016-01-171-2/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* core: make __uclient_get_url staticFelix Fietkau2016-01-171-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add progress bar supportFelix Fietkau2016-01-174-14/+305
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add support for setting output directoryFelix Fietkau2016-01-161-1/+9
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-http: use blocking connect, switch to non-blocking later. fixes ipv6 ↵Felix Fietkau2016-01-161-1/+3
| | | | | | -> ipv4 fallback Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: detect connect failureFelix Fietkau2016-01-161-0/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: ignore SIGPIPEFelix Fietkau2016-01-161-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add proxy supportFelix Fietkau2016-01-161-3/+56
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: add proxy supportFelix Fietkau2016-01-161-0/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* core: add proxy supportFelix Fietkau2016-01-163-43/+104
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* core: fix memory leak if url change failsFelix Fietkau2016-01-161-1/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-http: make username/password variables localFelix Fietkau2016-01-161-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add support for resuming downloadsFelix Fietkau2016-01-161-7/+105
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: clean up output file selectionFelix Fietkau2016-01-161-11/+11
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: allow the header_done callback to reset the client stateFelix Fietkau2016-01-162-1/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add support for --timeoutFelix Fietkau2016-01-161-0/+13
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add support for --spiderFelix Fietkau2016-01-161-3/+16
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add support for --post-dataFelix Fietkau2016-01-161-1/+13
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: only add default CA entries if no certificate was supplied ↵Felix Fietkau2016-01-161-1/+1
| | | | | | and verify was requested Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add support for setting the user agentFelix Fietkau2016-01-161-1/+14
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add support for fetching multiple urlsFelix Fietkau2016-01-161-17/+38
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: add user/password to command line helpFelix Fietkau2016-01-161-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: load CA certificatesFelix Fietkau2016-01-161-1/+19
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: get remote address from usock instead of using getpeernameFelix Fietkau2016-01-151-5/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: set server_name of the ssl context to support SNIAlexander Couzens2015-08-061-0/+1
| | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* uclient-http: end custom header lines with CRLFFelix Fietkau2015-04-141-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-http: allow .header_done() callback to reset the connectionFelix Fietkau2015-04-141-0/+6
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* allow sending requests with DELETE methodRafał Miłecki2015-01-221-0/+2
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* use const for char buffer in uclient_writeRafał Miłecki2015-01-224-4/+4
| | | | | | We are not supposed to modify it and ustream accepts const already. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* support for connection timeoutRafał Miłecki2015-01-184-3/+70
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* http: fix processing of digest auth parametersFelix Fietkau2014-12-101-3/+30
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: terminate old connection in uclient_http_connect after incomplete ↵Felix Fietkau2014-09-041-0/+3
| | | | | | request processing Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: do not call uclient_http_disconnect from uclient_notify_eof directlyFelix Fietkau2014-09-041-13/+13
| | | | | | Depending on the context, it can lead to crashes Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-http: only invoke data_sent callback if it is providedJo-Philipp Wich2014-09-041-1/+3
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* http: ignore empty lines before HTTP responseFelix Fietkau2014-08-211-0/+3
| | | | | | Fixes HTTP keepalive issues with some servers Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* fetch: fix segfault after destination was not reachedLuka Perkov2014-07-071-6/+28
| | | | Signed-off-by: Luka Perkov <luka@openwrt.org>
* http: implement data_sent write callbackLuka Perkov2014-07-071-0/+22
| | | | Signed-off-by: Luka Perkov <luka@openwrt.org>
* http: rework authentication handling - only retry internally for GET requestsFelix Fietkau2014-05-281-4/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* uclient-fetch: define _GNU_SOURCE (used for asprintf)Felix Fietkau2014-05-091-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* fetch: print the URL while connectingFelix Fietkau2014-05-081-1/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* fetch: add support for --user and --passwordFelix Fietkau2014-05-081-1/+27
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* fetch: always use O_EXCL when creating output files, use unlink if -O is ↵Felix Fietkau2014-05-081-5/+2
| | | | | | specified Signed-off-by: Felix Fietkau <nbd@openwrt.org>