mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Added ACL redirection support
This commit is contained in:
parent
fb8b5b9da6
commit
8a119c804b
1 changed files with 2 additions and 2 deletions
|
|
@ -155,6 +155,8 @@ static void http_set_connection_options()
|
|||
curl_easy_setopt(curl, CURLOPT_TIMEOUT, HTTP_TIMEOUT);
|
||||
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, HTTP_TIMEOUT);
|
||||
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 1L);
|
||||
curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 5L);
|
||||
curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
|
||||
curl_easy_setopt(curl, CURLOPT_NOBODY, 0);
|
||||
#ifdef DEVEL
|
||||
|
|
@ -281,8 +283,6 @@ int icwmp_http_send_message(char *msg_out, int msg_out_len, char **msg_in)
|
|||
if (http_code != 200 && http_code != 204)
|
||||
goto error;
|
||||
|
||||
/* TODO add check for 301, 302 and 307 HTTP Redirect*/
|
||||
|
||||
if (http_c.header_list) {
|
||||
curl_slist_free_all(http_c.header_list);
|
||||
http_c.header_list = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue