Re: urllib2.urlopen issue

2009-06-24 Thread Miles Kaufmann
On Jun 24, 2009, at 2:59 PM, David wrote: On Jun 24, 11:27 am, Chris Rebert wrote: On Wed, Jun 24, 2009 at 10:50 AM, David wrote: hello, I have a url that is "http://query.directrdr.com/ptrack? pid=225&v_url=http:// www.plentyoffish.com&keyword=flowers&feed=1&ip=12.2.2.2&said=$said". If I open

Re: urllib2.urlopen issue

2009-06-24 Thread David
On Jun 24, 11:27 am, Chris Rebert wrote: > On Wed, Jun 24, 2009 at 10:50 AM, David wrote: > > hello, > > > I have a url that is "http://query.directrdr.com/ptrack? > > pid=225&v_url=http:// > >www.plentyoffish.com&keyword=flowers&feed=1&ip=12.2.2.2&said=$said". > > If I open it on a browser, I can

Re: urllib2.urlopen issue

2009-06-24 Thread Chris Rebert
On Wed, Jun 24, 2009 at 10:50 AM, David wrote: > hello, > > I have a url that is "http://query.directrdr.com/ptrack? > pid=225&v_url=http:// > www.plentyoffish.com&keyword=flowers&feed=1&ip=12.2.2.2&said=$said". > If I open it on a browser, I can get its contents without any > problem. > However, i

Re: urllib2.urlopen issue

2009-06-24 Thread Aahz
In article <854313cf-6323-4ca9-b883-65ca8f414...@v23g2000pro.googlegroups.com>, David wrote: > >import urllib2 >url = 'http://query.directrdr.com/ptrack?pid=225&v_url=http:// >www.plentyoffish.com&keyword=flowers&feed=1&ip=12.2.2.2&said=$said' >xml = urllib2.urlopen(url).read() > >then I get an e

urllib2.urlopen issue

2009-06-24 Thread David
hello, I have a url that is "http://query.directrdr.com/ptrack? pid=225&v_url=http:// www.plentyoffish.com&keyword=flowers&feed=1&ip=12.2.2.2&said=$said". If I open it on a browser, I can get its contents without any problem. However, if I use following code, import urllib2 url = 'http://query