summaryrefslogtreecommitdiff
path: root/uclient-http.c
Commit message (Collapse)AuthorAgeFilesLines
...
* properly terminate POST requestsFelix Fietkau2014-03-291-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add copyright headersFelix Fietkau2014-03-251-0/+17
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* implement optional SSL certificate validation (including CN host check)Felix Fietkau2014-03-251-3/+48
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* fix connect error handlingFelix Fietkau2014-03-251-2/+8
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add support for passing in an external ustream_ssl contextFelix Fietkau2014-03-241-3/+23
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* move nc to struct uclient_httpFelix Fietkau2014-03-231-4/+4
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* move ssl_ctx to struct uclient_httpFelix Fietkau2014-03-231-4/+7
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add a utility function to detect redirects and handle themFelix Fietkau2014-03-231-0/+38
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* make uclient_backend_http visible to allow the client to test for itFelix Fietkau2014-03-221-1/+1
| | | | | | the struct is still opaque, it is only used for pointer tests Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* parse the http response codeFelix Fietkau2014-03-221-0/+19
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* check for length > 0 before calling ustream_writeFelix Fietkau2014-03-221-1/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* implement digest supportFelix Fietkau2014-03-221-6/+221
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* pass the initial / from uclient core to the proto handlerFelix Fietkau2014-03-221-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* preserve the contents of the www-authenticate header and use them to detect ↵Felix Fietkau2014-03-221-67/+141
| | | | | | | | authentication mode preparation for adding digest authentication support Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add support for processing the content-length header when transfer is not ↵Felix Fietkau2014-03-211-0/+15
| | | | | | chunked Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add support for reusing connectionsFelix Fietkau2014-03-211-16/+35
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* set eof on HEAD requests after header endFelix Fietkau2014-03-211-0/+6
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* remove debug codeFelix Fietkau2014-03-211-6/+0
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add support for parsing chunked data on readFelix Fietkau2014-03-211-12/+79
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* use chunked data for POST, set HTTP version to 1.1Felix Fietkau2014-03-211-34/+7
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* Initial importFelix Fietkau2014-03-201-0/+481
Signed-off-by: Felix Fietkau <nbd@openwrt.org>