Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Combining a web application and a REST application under a single URI?

by talexb (Chancellor)
on Jul 21, 2006 at 14:13 UTC ( [id://562868]=note: print w/replies, xml ) Need Help??


in reply to Re: Combining a web application and a REST application under a single URI?
in thread Combining a web application and a REST application under a single URI?

    Don't add your own header field, use the Accept header. That's what it's for.

Thanks, and for those following along at home, that's section 14.1 of the HTTP 1.1 specification. Select 'text/xml' and we're off to the races (and I may add application/xml as well).

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

  • Comment on Re^2: Combining a web application and a REST application under a single URI?

Replies are listed 'Best First'.
Re^3: Combining a web application and a REST application under a single URI?
by Anonymous Monk on Jul 28, 2006 at 16:01 UTC
    Reminder: Since you are delivering different HTTP responses according to a UA supplied header field, you must add the appropriate Vary header to your HTTP response.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://562868]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-19 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found