Permalink
Browse files

default to following redirect & no SSL certificate

  • Loading branch information...
1 parent 5dd8a17 commit 32cbd58a7fc34dbeb4b0a60f18909fa13f5a31e3 @lh3 lh3 committed Nov 28, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 kurl.c
View
3 kurl.c
@@ -175,6 +175,9 @@ kurl_t *kurl_open(const char *url, kurl_opt_t *opt)
curl_easy_setopt(ku->curl, CURLOPT_VERBOSE, 0L);
curl_easy_setopt(ku->curl, CURLOPT_NOSIGNAL, 1L);
curl_easy_setopt(ku->curl, CURLOPT_WRITEFUNCTION, write_cb);
+ curl_easy_setopt(ku->curl, CURLOPT_SSL_VERIFYPEER, 0L);
+ curl_easy_setopt(ku->curl, CURLOPT_SSL_VERIFYHOST, 0L);
+ curl_easy_setopt(ku->curl, CURLOPT_FOLLOWLOCATION, 1L);
}
ku->m_buf = KU_DEF_BUFLEN;
if (!kurl_isfile(ku) && ku->m_buf < CURL_MAX_WRITE_SIZE * 2)

0 comments on commit 32cbd58

Please sign in to comment.