Adding headers to HTTP requests

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Buffman
    Indigo Rose Customer
    • Mar 2005
    • 187

    Adding headers to HTTP requests

    I need to send an authorization header in my HTTP.Download request, and I can't figure out a way to do this natively. Is this possible?

    Basically I'm doing this:

    - Using HTTP.SubmitSecure() with a user/pass and getting the auth token

    and now I need to pass this token to other urls with this header:
    Authorization: GoogleLogin auth=yourAuthToken

    Any thoughts? Do I have to do this externally?
  • Buffman
    Indigo Rose Customer
    • Mar 2005
    • 187

    #2
    Just to follow up on this, there are a couple ways to handle this:

    1) Use LuaSocket with the http module to create your headers

    or

    2) Use curl from the command line and send custom headers

    For my project I ended up using option 2, as I can't get LuaSocket working in Vista

    Hope this helps anyone in the future.

    Comment

    Working...
    X