Running a curl command within py script

Smaran Harihar smaran.harihar at gmail.com
Wed Nov 14 13:09:31 EST 2012


Hi Guys,

i found pycurl to execute python curl command but not sure how I can
execute the curl command using the pycurl.

curl -u admin:geoserver -v -XPUT -H 'Content-type: text/plain' -d
'file:/var/www/geo/shapefile/csvQshp/Quercus_iltisii.shp'
http://localhost:8080/geoserver/rest/workspaces/acme/datastores/Quercus_iltisii/external.shp
?

This is the curl command.

-- 
Thanks & Regards
Smaran Harihar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121114/8bf2d46f/attachment.html>


More information about the Python-list mailing list