Re:A new curl option was born: --url-query
by chrsig on Thursday November 10, 2022 @11:00AM
(#33548372)
> Adding advanced features are nice, but IMO this might lead to over-engineering and it might be hard to maintain down the line.
curl's not exactly a new project -- this is 'down the line' for it.
I personally welcome the change. I wont use it often, but when I will, I'll be quite happy that it's there. There are a number of other features I'd give up in it's stead.
Re:A new curl option was born: --url-query
by bfung on Thursday November 10, 2022 @06:17PM
(#33555039)
More than several times, there are data APIs that return raw text/csv, esp taking data from older systems.
Writing a scraper for those, bash & curl comes in handy w/o needing extra cruft of file writing ceremonies (ex: with open…), just pipe straight to file.
Re:A new curl option was born: --url-query
by selcuka on Thursday November 10, 2022 @06:41PM
(#33555283)
> Adding advanced features are nice, but IMO this might lead to over-engineering and it might be hard to maintain down the line.
Well, one person [1] has been maintaining it since 1998. It's a good thing that HTTP doesn't change that often.
So I wonder how much demand there actually is for advanced features like this. When I need to make POST requests with queries and data, I would just use python because I most likely need to process the response (parse html, store json output to database, etc.).
Adding advanced features are nice, but IMO this might lead to over-engineering and it might be hard to maintain down the line.