Modify libcurl options for dealing with SSL and redirects.
authorWilliam Douglas <william.douglas@intel.com>
Fri, 1 Feb 2013 18:51:09 +0000 (10:51 -0800)
committerWilliam Douglas <william.douglas@intel.com>
Fri, 1 Feb 2013 18:51:09 +0000 (10:51 -0800)
Signed-off-by: William Douglas <william.douglas@intel.com>
src/submit.c

index 350eba4..a693db0 100644 (file)
@@ -237,6 +237,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);
@@ -261,6 +262,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);