Ability to add additional http headers to get request

Created on 29 July 2019, over 5 years ago
Updated 5 February 2023, almost 2 years ago

I have a couple of feeds that I need to authenticate first with a client ID/secret combo. I was able to include these in the HttpFetcher get function:

$options[RequestOptions::HEADERS]['client_id'] = 'abcdefghij';
$options[RequestOptions::HEADERS]['client_secret'] = '1234567890';

For my use case, storing here would be OK because all of the feeds would need this. I could also see this as part of the Feed content Import Options. Or maybe there's a more elegant solution that I'm missing. I thought I'd post in case this would be useful to others.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇺🇸United States bwoods

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024