use the redirect function in the example code
Signed-off-by: Felix Fietkau <[email protected]>
add a utility function to detect redirects and handle them
Signed-off-by: Felix Fietkau <[email protected]>
add missing prototype for uclient_backend_set_error
Signed-off-by: Felix Fietkau <[email protected]>
make uclient_backend_http visible to allow the client to test for it
the struct is still opaque, it is only used for pointer tests
Signed-off-by: Felix Fietkau <[email protected]>
parse the http response code
Signed-off-by: Felix Fietkau <[email protected]>
check for length > 0 before calling ustream_write
Signed-off-by: Felix Fietkau <[email protected]>
pass the initial / from uclient core to the proto handler
Signed-off-by: Felix Fietkau <[email protected]>
add utilities for calculating http digest hashes
Signed-off-by: Felix Fietkau <[email protected]>
preserve the contents of the www-authenticate header and use them to detect authentication mode
preparation for adding digest authentication support
Signed-off-by: Felix Fietkau <[email protected]>
fix double / on requests to root
Signed-off-by: Felix Fietkau <[email protected]>
add support for processing the content-length header when transfer is not chunked
Signed-off-by: Felix Fietkau <[email protected]>
add support for reusing connections
Signed-off-by: Felix Fietkau <[email protected]>
set eof on HEAD requests after header end
Signed-off-by: Felix Fietkau <[email protected]>
example: use stdout instead of stderr
Signed-off-by: Felix Fietkau <[email protected]>
add support for parsing chunked data on read
Signed-off-by: Felix Fietkau <[email protected]>
use chunked data for POST, set HTTP version to 1.1
Signed-off-by: Felix Fietkau <[email protected]>