File "C:\Python27\lib\urllib2.py", line 378, in _call_chain
result = func(*args)
File "C:\Python27\lib\urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 406: Not Acceptable
You can see valid and working Python examples on each method in our documentation. Just click the method and under the "show code sample" choose Python.
Travis Bell 的回复
于 2012 年 10 月 29 日 10:52上午
Do you get an error? What's the HTTP status or body you get back?
northstar 的回复
于 2012 年 10 月 29 日 11:21上午
This is the Error Code:
File "C:\Python27\lib\urllib2.py", line 378, in _call_chain result = func(*args) File "C:\Python27\lib\urllib2.py", line 527, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 406: Not Acceptable
Travis Bell 的回复
于 2012 年 10 月 29 日 11:27上午
Makes sure you set a valid "Accept" header.
You can see valid and working Python examples on each method in our documentation. Just click the method and under the "show code sample" choose Python.
northstar 的回复
于 2012 年 10 月 29 日 11:37上午
Thank you very much, thats great :)