Currently I am trying to use Curl to send a simple query GraphQL via API V2.
However , I encountered 400 Bad Request.
I ran this command in Windows 10 command mode directly as following.
Yes, it works !
Actually I had tried to change single-quote to double-quote , but I did not add \ in in front of each double-quote between this two double-quotes.
Thanks a lot !
Returning 400 means that the request was malformed. In other words, the data stream sent by the client to the server didn’t follow the rules. The client SHOULD NOT repeat the request without modifications. It means that the request itself has somehow incorrect or corrupted and the server couldn’t understand it. The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method . Therefore, it prevents the website from being properly displayed. To fix a 400 Bad Request error, it is best to start diagnosing the issue from the client side itself. Complete the steps outlined in this section to help diagnose and correct the error.