HTTP header fields

17 views
Skip to first unread message

Antonio Fregoso

unread,
Oct 25, 2016, 3:33:20 PM10/25/16
to TurboGears
Good day.

I need to read the http headers for monitoring purposes
How can I do it?

regards

Petru Ciobanu

unread,
Oct 26, 2016, 3:57:53 AM10/26/16
to TurboGears

It should be possible to access headers trough request.

from tg import request

Give him a try.
Cheers.


--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at https://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.
--
Petru Ciobanu

Antonio Fregoso

unread,
Oct 26, 2016, 8:08:24 PM10/26/16
to TurboGears


Thanks Petru Ciobanu

I solved as follows:

from tg import request

source = request.referer

regards

Reply all
Reply to author
Forward
0 new messages