Похожие чаты

Does someone know how I can get curl to append

the data(specified with -d) to the URL when using a POST request ?

It puts it in the form but I want it in the url like it does when doing a GET request. The following command should have the args appended to the url instead of them being submitted as form:
Check the "url" field of the response
curl -sSq -X POST https://httpbin.sitischu.com/post -d 'test=test_value&test2=test_value2'

If you have jq installed:
curl -sSq -X POST https://httpbin.sitischu.com/post -d 'test=test_value&test2=test_value2' | jq ".url"

So instead of the URL being
http://httpbin.sitischu.com/post

I want it to be
http://httpbin.sitischu.com/post?test=test_value&test2=test_value2

I could just append them to the URL manually but having curl do it would be handier.

1 ответов

4 просмотра

https://stackoverflow.com/questions/8498371/curl-get-and-x-get/8502004

Похожие вопросы

Обсуждают сегодня

читать файл максимально быстро? странный вопрос))
zamtmn
52
Посоветуйте пожалуйста аудио плеер для библиотеки mp3- FLAC на компьютере. На Винде пользовался Aimp, в том числе для конвертации. Много нужных команд было прямо в контекст...
Виктор Кузнецов
31
It is definitely an interesting conversation. Breaking up the users into 2 personas: 1. Someone who wants to use the products (I want “x” pegged stablecoin that provides safe...
Bueno Pues
10
So, does this mean leap 6 is closed source now? https://github.com/AntelopeIO/spring/blob/main/LICENSE
Kameron James | zeos.one
20
Guys is any possible go up? Shib
Prem Kumar
21
Ajeeb aadmi hai, isko padhna nahi aata kya?
Jay Bansal
43
всем привет! углубившись в плюсы и начав изучать реверсинг понял, что без асм'а никуда со своими высокоабстрактными представлениями начал изучать механизмы асма, и не совсем п...
9
@LGCYMan @JustinKKW Q/A List 1. this part confuses me on #8: "From there, a bridge between erc20 LGXY and erc20 LGXY will be out once that swap is closed." does this mean ...
Sig | LGXY | BattleVerse L1 | BitWin
1
Привет. Сразу скажу, что на C/C++/Rust я не пишу, но тем не менее возникла потребность дебага C/C++/Rust кода. Суть: есть серверное приложение, которое периодически ведёт себ...
ninekeem 🐳
4
Hello, are you guys developing on BCH? Building some side chain or something? Apps? Or do you guys have another vision for the project? That you don’t mind sharing
Jack
13
Карта сайта