Modify libcurl options for dealing with SSL and redirects.
authorWilliam Douglas <william.douglas@intel.com>
Fri, 25 Jan 2013 21:34:02 +0000 (13:34 -0800)
committerWilliam Douglas <william.douglas@intel.com>
Tue, 29 Jan 2013 18:42:39 +0000 (10:42 -0800)
Signed-off-by: William Douglas <william.douglas@intel.com>
src/submit.c

index 878b7a4..c3a16cf 100644 (file)
@@ -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);