request.headers

38 views
Skip to first unread message

lucas

unread,
Mar 28, 2021, 11:50:29 AM3/28/21
to web2py-users
hello one and all,

simple question.  is there a variable that returns the http headers coming into a function from the client, like request.headers?  the request.env is a bit mixed with other stuff besides the headers that come in from the client.

thanx in advance, lucas

黄祥

unread,
Mar 30, 2021, 12:50:13 PM3/30/21
to web2py-users
can use python module requests
e.g.
import requests
requests.get(url).headers

best regards,
stifan
Reply all
Reply to author
Forward
0 new messages