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

Specifiy user-agent when making requests to WooCommerce #357

Closed
wants to merge 1 commit into from
Closed

Specifiy user-agent when making requests to WooCommerce #357

wants to merge 1 commit into from

Conversation

lxalln
Copy link

@lxalln lxalln commented Mar 20, 2019

Some WooCommerce instances reject requests that don't have a UserAgent specified. Setting the UserAgent when making a request to WooCommerce, fixes this issue.

@XiaoFaye
Copy link
Owner

XiaoFaye commented Apr 2, 2019

Hi, we can use RequestFilter to achieve this, I have added a Wiki page regarding this issue. Thanks for bringing this up.

https://github.com/XiaoFaye/WooCommerce.NET/wiki/Specifiy-user-agent-when-making-requests-to-WooCommerce

@lxalln
Copy link
Author

lxalln commented Apr 2, 2019

Excellent! I didn't see the RequestFilters, or didn't think to use them.

@lxalln lxalln closed this Apr 2, 2019
@XiaoFaye XiaoFaye mentioned this pull request May 14, 2019
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

Successfully merging this pull request may close these issues.

2 participants