2009/5/27 Branko Vukelic <[email protected]>:
>
> Hi, list,
>
> I was browsing through the API documentation and the cookbook, and I
> couldn't find a way to read incoming request headers. In particular,
> I'm interested in differentiating between the requests containing the
> `X-Requested-With` header vs the others, so that I can handle AJAX
> calls with the same method.

you can access that from web.ctx.env['HTTP_X_REQUESTED_WITH'].

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to