Forum Discussion

Pranshu's avatar
Pranshu
New Contributor
7 years ago

How to create a REST request with x-www-form-urlencoded content-type in ReadyAPI 2.1.0?

Body of the request is in application/x-www-form-urlencoded format, this request do not work in any other format.

 

I tried to create this request by manually giving the value content-type as  application/x-www-form-urlencoded in Headers and body of the request in this format: grant_type=password&username=XXXX&password=XXXXX

 

But this is also not working, so please let me know how can I create this request in ReadyAPI?

8 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Use Media Type value as "application/x-www-form-urlencoded"
    • Pranshu's avatar
      Pranshu
      New Contributor

      Please read the query carefully.

       

      As mentioned there I already tried that, but that is not working.

      • nmrao's avatar
        nmrao
        Champion Level 3
        I think I read it carefully. It was mentioned Content-Type. It is suggested to use Media Type.