[yum-commits] urlgrabber/grabber.py

skvidal at osuosl.org skvidal at osuosl.org
Thu Jul 30 20:39:10 UTC 2009


 urlgrabber/grabber.py |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit b6f42ea4da88e1b24da5943c7235e54da7b35e2b
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Thu Jul 30 16:37:10 2009 -0400

    - make basic posts work

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 0f6456f..416441f 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1585,7 +1585,12 @@ class PyCurlFileObject():
                         self.curl_obj.setopt(pycurl.PROXY, proxy)
         
         # username/password/auth settings
-        
+
+        #posts - simple - expects the fields as they are
+        if opts.data:
+            self.curl_obj.setopt(pycurl.POST, True)
+            self.curl_obj.setopt(pycurl.POSTFIELDS, opts.data)
+            
         # our url
         self.curl_obj.setopt(pycurl.URL, self.url)
         


More information about the Yum-commits mailing list