curl-library
Re: Space in URL
Date: Fri, 6 Sep 2002 14:15:48 +0200 (CEST)
Hi!
On Fri, 6 Sep 2002, preetic wrote:
> I am facing a problem regarding space in url,cause of which data is not
> being posted.
> The piece of code is as follows:
> import pycurl
> c=pycurl.init()
> c.setopt(pycurl.URL,'http://tarahaat.com/health/Healthy Motherhood')
> c.perform()
I recently had the same problem with the C version of the library. You
have to encode spaces in URLs as %20. So, change the line reading
c.setopt(pycurl.URL,'http://tarahaat.com/health/Healthy Motherhood')
to
c.setopt(pycurl.URL,'http://tarahaat.com/health/Healthy%20Motherhood')
and run your Python program again.
Hope that helps!
Greetings,
Holger
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-09-06