0

I want to simulate a request of the form curl -d "param = value" "http://ip:port?key1=value1&key2=value2" using the REST API Testing, but unfortunately I do not know how. More details about the -d flag can be found here.

If I use POST for the method type then I get a 405 error and if I use GET for the method type then I get a 404 error. From the command line the command works perfectly and I am able to receive the answer, but I do not know how to adjust the snippet -d "param = value" in a HTTP request.

I really appreciate any kind of help !!!

3
  • Simulate curl -d in which language or environment? Also, post here your attempts that are not producing the expected results. Commented Oct 19, 2017 at 12:07
  • Thank you for the answer !!! The detailed request looks like this curl -d "input.string = a b c a b see" 'localhost:8090/jobs?appName=test&classPath=spark.jobserver.WordCountExample' and is taken from spark-jobserver. I would like to simulate curl -d in Java but as a HTTP request. More specifically, I do not know how to add the parameter "input.string = a b c a b see" in the message. Commented Oct 19, 2017 at 12:22
  • I found this post very helpful. Thank you again for your support !!! Commented Oct 19, 2017 at 14:00

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.