Google App Engine 出現 Stripped prohibited headers from URLFetch request: ['Host']
今天發現Google App Engine 出現
urlfetch_stub.py:504 Stripped prohibited headers from URLFetch request: ['Host']的解法,原來只要把 urllib 或 urllib2 改成 urlfetch 即可~
源自 StackOverFlow
Since urllib and urllib2 are just wrappers for urlfetch, I might also suggest the following:
from google.appengine.api import urlfetch result = urlfetch.fetch(url)不過這只是一個Warning,不是 Error ,所以沒解決也沒關係~
留言
張貼留言