News for hackers. Stuff that matters.
Re:A new curl option was born: --url-query by kh1 on Thursday November 10, 2022 @09:40AM (#33547092)
When I use curl, it's mostly when I need to check header or to trace requests in the network, for which I just use -vvv. Simple one-off stuff.

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.

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.

[1] https://daniel.haxx.se/