How to handle custom request which is showing 400 Bad request while replay

I am trying to send the below request as shown in the screenshot. Though i have give the required headers, content type etc. as required by the request while replay the request body is send in unknown language where as the same is recorded properly. Kindly help me to understand what is missing here 

  

Parents
  • Suggested Answer

    0  

    , You do show the headers for the correct message, but the Request Body for the failed message. That is hard to compare.
    You also hided the body content of your code.


    Because ContentEncoding is gzip, you might just see the weird characters. You might comment out the source line with "ContentEncoding=gzip" and see what you get.

    Error 400 means a Bad Request, so the payload is not expected by the server. Your payload might contain some data that needs to be changed (Correlated) from run to run.

    How to ask questions

    Reward contributions via likes or 'verified answers'

Reply
  • Suggested Answer

    0  

    , You do show the headers for the correct message, but the Request Body for the failed message. That is hard to compare.
    You also hided the body content of your code.


    Because ContentEncoding is gzip, you might just see the weird characters. You might comment out the source line with "ContentEncoding=gzip" and see what you get.

    Error 400 means a Bad Request, so the payload is not expected by the server. Your payload might contain some data that needs to be changed (Correlated) from run to run.

    How to ask questions

    Reward contributions via likes or 'verified answers'

Children
No Data