On Wed, May 27, 2009 at 10:50 AM, Anand Chitipothu <[email protected]> wrote:
>
> 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'].

Thank you!



-- 
Branko

eml: [email protected]
alt: [email protected]
blg1: http://sudologic.blogspot.com/
blg2: http://brankovukelic.blogspot.com/
img: http://picasaweb.google.com/bg.branko
twt: http://www.twitter.com/foxbunny/

--~--~---------~--~----~------------~-------~--~----~
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