Probably the server is doing the redirect wrong.
I would use something like this
http://stackoverflow.com/questions/554446/how-do-i-prevent-pythons-urllib2-from-following-a-redirect
To further inspect what's going on. Check the location you get in the 302.
--
Resources:
- http://web2py.com
- ht
I checked my query it is working fine but I found error sometime when I run
responsemmpn = urllib2.urlopen(requestmmpn)
In first go it throws below error but second time I run this same command
it works fine for me. Why this is happening??
Traceback (most recent call last):
File "", line 1,
>From what I could test the problem is that your query is wrong in one of
those steps. Check exactly what you are putting there.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/li
One more thing I would like to say about this is:
I am using 4 times urllib for calling same weblinks for different
purposesWill this cause problem??? If yes how to solve this issue?
params1 = {'from':'PDB_ID', 'to':'ACC', 'format':'tab',
'query':session.pdbid.strip()}
data1 = urllib.ur
4 matches
Mail list logo