Skip to content

Tag: curl

proper curl command for delete with > one word as the parameter

I have a rest request like the following: the id is a String, and can have multiple words with spaces in between like I would like to construct a curl command that supports String with spaces, but I don’t know how. Below does not pick up second word. grateful for ideas. Thanks Answer The answer was prov…

Get Json / Resonse body from Curl Post Request in Java

This is the method I have written which sends a POST request to send an Email. I am able to send the email and get the Response Code 200 Ok. But I don’t know how to get the JSON Response and convert it into an Object. Can someone please tell me how to do this? Answer A basic search reveals:

How to login to a spring security login form using cURL?

I am working on a springMVC project in which the user authentication is based on spring security. the idea is to have a mobile (android) application to be able to send some sort of data to backend. So before get my hand dirty into android developing I decided to mock the situation of login form using cURL. th…