I have been given a url .. www.abc.com/details
and asked to send my name and phone number on this url using POST
. They have told me to set the content-type as application/json and the body as valid JSON with the following keys:
name: name of the user
phone number: phone number of the user
Now i have no clue how to send this request! Will it be something like:
http://www.abc.com/details?method=post&name=john&phonenumber=445566
还是我必须用java
来发送同样的信息?
请帮忙