-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Override default Python requests user agent to something specific to awscurl #213
Comments
Hey Noah,Thanks for the idea!Could you do that now by passing user agent header[1] in the command line?[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-AgentOn Oct 18, 2024, at 8:38 AM, Noah Guillory ***@***.***> wrote:
Hi! What do you think about setting the user agent that's sent along with requests to something that indicates that requests are coming from awscurl? I ask because I've had it come up where it would have been useful during debugging something on my end that someone used your tool to call our API.
This is something that seems like a straightforward change since requests has an option that lets you set the user agent. I'm thinking something similar to the user agent of Curl where it's just awscurl/${version_number}.
Your thoughts? I'm happy to contribute a PR for this as well.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
That is fair, could get around this by passing through the header with the |
Right, I guess I am not sure of the use case, but happy to be convinced!On Oct 18, 2024, at 8:47 AM, Igor Okulist ***@***.***> wrote:Hey Noah,Thanks for the idea!Could you do that now by passing user agent header[1] in the command line?[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-AgentOn Oct 18, 2024, at 8:38 AM, Noah Guillory ***@***.***> wrote:
Hi! What do you think about setting the user agent that's sent along with requests to something that indicates that requests are coming from awscurl? I ask because I've had it come up where it would have been useful during debugging something on my end that someone used your tool to call our API.
This is something that seems like a straightforward change since requests has an option that lets you set the user agent. I'm thinking something similar to the user agent of Curl where it's just awscurl/${version_number}.
Your thoughts? I'm happy to contribute a PR for this as well.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! What do you think about setting the user agent that's sent along with requests to something that indicates that requests are coming from
awscurl
? I ask because I've had it come up where it would have been useful during debugging something on my end that someone used your tool to call our API.This is something that seems like a straightforward change since
requests
has an option that lets you set the user agent. I'm thinking something similar to the user agent of Curl where it's justawscurl/${version_number}
.Your thoughts? I'm happy to contribute a PR for this as well.
The text was updated successfully, but these errors were encountered: