Note, web2py Ajax components send some custom headers (web2py-component-element and web2py-component-location), so if custom headers aren't getting through in a particular configuration, I suppose Ajax components won't work properly either. Let us know what you find out.
Anthony On Tuesday, January 3, 2012 5:50:03 PM UTC-5, James M. wrote: > > Good to know that it is working with apache. Thanks for your help. > > On Jan 3, 2:26 pm, Anthony <[email protected]> wrote: > > Actually, just tried sending a hurl.it request, and Apache with > mod_wsgi > > did pass the custom header to web2py, so maybe your problem is with your > > nginx setup. > > > > Anthony > > > > > > > > > > > > > > > > On Tuesday, January 3, 2012 5:17:52 PM UTC-5, Anthony wrote: > > > > > Sorry, not enough sleep last night. Anyway, I have been able to pick > up > > > custom headers when running Rocket and Apache with mod_wsgi, so it > should > > > work in general. I'm not sure what the problem is in this case. Have > you > > > tried actual requests from Twilio (rather than just testing with > hurl.it)? > > > > > Anthony > > > > > On Tuesday, January 3, 2012 5:01:01 PM UTC-5, James M. wrote: > > > > >> I think you are looking at the post from IE tohttp://hurl.it, which > > >> is including the Header parameter (as a post parameter) to hurl.it, > > >> when it arrives at hurl.it it should create a http post from the > > >> hurl.it server to the url specified with header, parameters and body > > >> specified. > > > > >> On Jan 3, 10:01 am, Anthony <[email protected]> wrote: > > >> > On Tuesday, January 3, 2012 12:31:10 PM UTC-5, James M. wrote: > > > > >> > > I am testing it usinghttp://hurl.itandmanually adding the header, > > >> > > so I am fairly confident the header is getting passed(at least in > > >> > > testing). > > > > >> > Hmm, when I try hurl.it in IE and add a custom header, the custom > > >> header > > >> > doesn't appear in the request headers in IE's developer tools. > Instead, > > >> I > > >> > see the following added to the query string of the URL: > > >> > header-keys%5B%5D=X-Twilio-Signature. Maybe the problem is with > hurl.it. > > > > >> > Anthony

