Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using User-Agent for HttplugClient #421

Open
IgorA100 opened this issue Oct 16, 2023 · 0 comments
Open

Using User-Agent for HttplugClient #421

IgorA100 opened this issue Oct 16, 2023 · 0 comments

Comments

@IgorA100
Copy link
Contributor

I use:

$client = new \FeedIo\Adapter\Http\Client(new Symfony\Component\HttpClient\HttplugClient());
$feedIo = new \FeedIo\FeedIo($client);
$result = $feedIo->read("Blah blah...");

But I can't figure out how to use "User-Agent".
I see the solution as an option to change:
"FeedIo\Adapter\Http\Client.php"
In "request" add the line:
$headers['User-Agent'] = 'Blah blah...';
There are other options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant