Enable application runned by GAE to server rdf content

38 views
Skip to first unread message

lh

unread,
Feb 12, 2015, 9:40:41 AM2/12/15
to google-a...@googlegroups.com

Hi,

I use GAE to run an application. How can I realize content negotiation to server application/rdf+xml when it is required with GAE using app.ymal or .htaccess. As GAE run by default in port 8080 I made an apache redirection using virtual hosts (ProxyPass) from port 80 to 8080.

Should I use app.yaml or .htaccess (and in which folder to create .htaccess, GAE or mysite, I tried both but unsuccessful).
Also checked to some solutions like editing app.yaml using some logic from this link https://gist.github.com/darktable/873098 ,etc.

Thanks in advance.

Vinny P

unread,
Feb 16, 2015, 2:22:28 AM2/16/15
to google-a...@googlegroups.com
To be clear, you want to negotiate whether to send back RDF or another type of content, correct?

You can read up on how content negotiation works here: http://www.w3.org/TR/cooluris/#implementation but the short version is that you need to inspect the Accept header and see if the browser will accept RDF content. If so, you can send back RDF; if not, you send back whatever content the browser indicates priority to. You can implement this all in code - the only app.yaml configuration needed is to route the incoming request 

 
 
-----------------
-Vinny P
Technology & Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com
 
 
Reply all
Reply to author
Forward
0 new messages