From d7524b4236e3d54b26fda394e71a5c2555b580e8 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Fri, 25 Jan 2013 13:34:02 -0800 Subject: [PATCH] Modify libcurl options for dealing with SSL and redirects. Signed-off-by: William Douglas --- src/submit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/submit.c b/src/submit.c index 878b7a4..c3a16cf 100644 --- a/src/submit.c +++ b/src/submit.c @@ -239,6 +239,7 @@ void *submit_loop(void __unused *unused) failcount = 0; curl_easy_setopt(handle, CURLOPT_URL, submit_url[i]); + curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0L); /* check the connection before POSTing form */ result = curl_easy_perform(handle); @@ -263,6 +264,7 @@ void *submit_loop(void __unused *unused) CURLFORM_COPYNAME, "crash", CURLFORM_COPYCONTENTS, oops->text, CURLFORM_END); curl_easy_setopt(handle, CURLOPT_HTTPPOST, post); + curl_easy_setopt(handle, CURLOPT_POSTREDIR, 0L); curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, writefunction); result = curl_easy_perform(handle); curl_formfree(post); -- 2.7.4