From cff928dae59aa115a6f74f68ee4f08dfda2beeb7 Mon Sep 17 00:00:00 2001 From: "imen.bhiri" Date: Thu, 1 Jun 2017 09:01:43 +0100 Subject: [PATCH] Ticket refs #12190 :icwmp doesn't follow HTTP 302 --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index 0b774b9..de4e57f 100644 --- a/http.c +++ b/http.c @@ -200,7 +200,7 @@ http_send_message(struct cwmp *cwmp, char *msg_out, int msg_out_len,char **msg_i 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_POSTREDIR, CURL_REDIR_POST_ALL); curl_easy_setopt(curl, CURLOPT_NOBODY, 0); switch (cwmp->conf.compression) { case COMP_NONE: