From: William Douglas Date: Fri, 25 Jan 2013 21:34:02 +0000 (-0800) Subject: Modify libcurl options for dealing with SSL and redirects. X-Git-Tag: 2.1b_release~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7524b4236e3d54b26fda394e71a5c2555b580e8;p=external%2Fcorewatcher.git Modify libcurl options for dealing with SSL and redirects. Signed-off-by: William Douglas --- 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);