JSON request to server/client

Hello,
I am very new to testing. I am in the process of carrying out a test case which should make it possible to send JSON requests to the server and to recover Callbacks. and I would like to know if there are tools that allow you to do so.

Thanks for your help.

I’ve not used these myself but some these libraries look relevant:


2 Likes

Hi Matthew,

I haven’t used RESTinstance library, yet. I had used the RequestLibrary. But I don’t have access to the snippets right now.

Thank you Matthew,
I manage to send requests with RESTinstance, but I wish it was only the JSON sent to the server. thank you. As

15:20:10 > [info:application:start:79] Accepting connection from 127.0.0.1 : 11111
15:20:10 > [info:application:start:105] Receiving tcp socket data: PUT /input HTTP/1.1
Host: 127.0.0.1:50000
Connection: keep-alive
Accept-Encoding: gzip, deflate
Accept: application/json, */*
User-Agent: RESTinstance/1.0.2
Content-Type: application/json
Content-Length: 85

{"Server": {"Operation": "Read", "Uri": "/3303", "ClientName": "_Client"}} from 127.0.0.1 : 1111
15:20:10 > [error:application:is_valid:29] JSON parsing error: Expecting value

Here is what I would like to have on the server:

{"Server": {"Operation": "Read", "Uri": "/300", "ClientName": "_Client"}}

Thanks.


Here are some good examples using the requests library to send REST API requests with json.
2 Likes

Thank you very much .