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
Feature request: easier access to ETag in the curl CLI #4277
Comments
I like this idea. There are some details to think about if someone would work on implementing this. Throwing them out here! I think it would make sense to name the options In a case like the first command line that would save the etag, I would imagine that a user then also would like the command line perhaps to return a failure if it didn't actually get a proper etag back. Would the If |
+1 to If the server doesn't supply an Etag, As for the contents of the
Yes, |
what about |
I just don't see the need. You can already set the header and parse response headers. I don't think we need |
to get ETAG and send it with If-not-match late for the same this avoid |
Can I work on this issue? Also is this something, a first time curl contributor can actually implement? Thanks |
@s-3ntinel Oh absolutely, please feel most welcome to grab this issue and do something with it! I would propose that you read the comments done so far and maybe come up with a way you think makes sense and then proceed to implement that and submit a PR. Just be prepared that we might get into some discussion on how exactly the functionality should be, how what the flags should work and how they should be named etc. But we're all on the same team here so there's no ill will and nothing but good intentions driving the feedback. If you want to, file the first PR with a Also, if you get stuck on implementation before you get to a PR, join the curl-library mailing list and ask questions there to the team or join the IRC channel ( Thanks for considering this! |
Thanks for the info! Will try my best. |
It would be useful if there was a one-step way in the curl CLI to get the ETag header from one request and be able to feed it directly to the next request, with curl using the If-None-Match header. This would probably involve two new options, and might look like:
The text was updated successfully, but these errors were encountered: