-
Notifications
You must be signed in to change notification settings - Fork 234
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
Correctly identify as iTop in cURL requests #652
base: develop
Are you sure you want to change the base?
Conversation
Good idea. I don't know if it can have any side effects though? |
Well, the adverse. So, if an external API refuses to connect anything else than |
Just wondering if there should be a config setting as well to override this, and set a custom user agent string? (Or we can simply wait for the first real use case where it's necessary and would need to imitate a regular browser string for some reason). |
I'll raise the question during functional review :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technical review:
- Ok for the principle
- But use a conf. param.
- Name :
http.request.user_agent
(another name might be proposed) - Default value :
ITOP_APPLICATION.'/'.ITOP_VERSION
- Name :
The conf. param. will allow to change it to something specific when needed and to revert it to "spider" for cases where people would have used that information.
Accepted during functional review. Will be in next iTop version. |
Base information
Objective
Outgoing HTTP requests are identified with "spider" user agent, which can simply be blocked sometimes.
Proposed solution
Use for example
iTop/3.2.0
as user agent when doing HTTP requests to other services..Checklist before requesting a review