From what i can see get_url doesn’t support specifying custom http headers like the uri module.
What i am trying to do is download some files from the object storage in Softlayer (based on SwiftStack)
- Customised the softlayer inventory file to include username and apikey as group_vars when generating inventory
- use uri module to authenticate against object storage and get storage auth token
- use get_url to download files but need to specify custom header to include token
Am I am correct in saying can’t specify custom header in get_url, happy to try and create a patch to support this if this is ok?
thanks
Andrew
It seems to be me (longer-term) we’d benefit from having some modules explicitly for SoftLayer instead as opposed to going through the uri module.
get_url is basically there for easy downloads of web resources.
I think we are open to the idea of having it take a new parameter (try to match up with what uri does, I’d think).
Agree would be nice for some kind of softlayer support but requires a bit more thought and structure for username/keys/authentication end points etc so figured this would be simpler in short term for my needs and still potentially useful for others
Will take a look and see i can put a patch together.