On Aug 24, 2012, at 9:48 AM, Mutlu Dogruel wrote:
Hi folk,
Do you know any method for reading (the extended) WSGI HTTP headers from a custom tool?
If I put some debugging lines in $galaxy/lib/galaxy/web/framework/middleware/xforwardedhost.py, I can read the HTTP headers I want. But I need to access them under tools/my_script.py. Is there a way to reach the "webapp"s http headers from there?
Hi Mutlu,
Do you mean the headers at the time of tool execution? Running tools (jobs) is intentionally decoupled from the state of the front end. However, you could modify the tool submission to store the header as a tool parameter and pass it in the command template.
--nate
Thanks. Mutlu ___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: