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

Add support for custom user agent #153

Closed
crisc82 opened this issue Dec 23, 2016 · 3 comments

Comments

@crisc82
Copy link

commented Dec 23, 2016

Hello, my dynamic dns provider request to provide a specific browser user agent to it's update.php page for the form to appear in the page.
In my bash script i'm using something like this:
curl -A "$AGENT" -d "username=$USERNAME&password=$PASSWORD&domain=$DOMAIN&ipaddr=$IP&change=Update" $URL
So i'm making a curl request to a page with a specific user agent and i'm filling a form and submit (POST)

I have read the inadyn custom examples , but i can't find anyware in the documentation how to specifiy a user agent.
If this is not possible, please add support for this in the future version.

@troglobit troglobit changed the title please add support for custom user agent Add support for custom user agent Dec 23, 2016

@troglobit

This comment has been minimized.

Copy link
Owner

commented Dec 23, 2016

Great idea, and also a good chance for a contributor to chip in and work on Open Source! 😃

I don't have this requirement myself, so this one will have to be up to the community (or yourself) to add support for.

troglobit added a commit that referenced this issue Jan 5, 2017
Refactor user agent handling in HTTP requests
This patch simplifies the HTTP user agent handling in preparation for
feature request #153.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>

@troglobit troglobit closed this in 3aeda36 Jan 5, 2017

troglobit added a commit that referenced this issue Jan 5, 2017
Fix #153: per-provider support for custom User Agent
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
@troglobit

This comment has been minimized.

Copy link
Owner

commented Jan 5, 2017

Just added support for a global and per-provider user-agent = STRING setting to the GIT master branch. It will be included in the upcoming v2.2 release of Inadyn.

Thank you for your contribution to Open Source! 😃

@crisc82

This comment has been minimized.

Copy link
Author

commented Jan 8, 2017

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.