python - AppEngine urlfetch broken on SDK 1.9.23 ? -


the following code (see below) returns following http codes different versions of appengine sdk:

  • 1.9.19: 200
  • 1.9.20: 200
  • 1.9.21: 200
  • 1.9.22: [not tested, sdk not found in deprecated sdk directory]
  • 1.9.23: 404

all sdks tested near- simultaneously, verified manually page exists.

??


from google.appengine.api import urlfetch google.appengine.ext import testbed  tb=testbed.testbed() tb.activate() tb.init_urlfetch_stub()          http=urlfetch.fetch(method="get", url="http://sports.coral.co.uk/football/outrights")  print http.status_code 

upgrade 1.9.24. had problems 1.9.23 , narrowed down http request urlfetch looked proxy requests:

invalid request using 1.9.23:

get http://example.com:80/ http/1.1 host: example.com 

valid request using 1.9.24:

get / http/1.1 host: example.com 

some http-servers accept both kinds of requests (the devapp server example) don't (elasticsearch example).


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -