If I make a call to the Digg API like:
from google.appengine.api.urlfetch import fetch
url='http://services.digg.com/url/short/%s?appkey=http%
%3A//...appspot.com/' % token
result=fetch(url, follow_redirects=False)
Then the result is:
<?xml version="1.0" encoding="UTF-8"?>
<error code="1029" message="HTTP User-Agent header required"
timestamp="1240327450"/>
Sniffing the wire, I can see the outgoing request is:
GET /url/short/d1nYVs?appkey=http%3A//...appspot.com/ HTTP/1.1
Accept-Encoding: identity
Host: services.digg.com
Accept: */*
Indeed, no User-Agent header is provided. Attempting to specify one
myself does not work. This is only, yet, with the SDK.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---