POST REQUEST BODY TYPE x-www-form-urlencided RestAssured

48 views
Skip to first unread message

Harsha vardhan

unread,
Aug 25, 2020, 7:06:59 AM8/25/20
to REST assured
Hi guys , 
Really need help , 
This API server only accepts body which is Base64 encoded  and not JSON raw body. 
I am tyring to do a post request . 
It is working in POSTMAN but I want to do it in Rest Assured. 
I am getting 415 error. 

In POSTMAN it has the 
BaseURI and path 
Under header section
               KEY                                            VALUE 
  • x-access-token                         woeihferiuhgrehg
  • Content-TYpe                            wepojfoerihgiore
  • x-api-key                                      oweihfoierhfoierhf

Under body
the radio button for x-www-form-urlencoded is selected
KEY                    VALUE 
regJSON            ejnvgjerngrjtng


How Do I code in Rest Assured , 
Any help will be really appriciated. 
Thank you

Anda Cristea

unread,
Dec 23, 2021, 12:00:51 PM12/23/21
to REST assured
Hi,

Do you have a solution?

I have the same issue.
Reply all
Reply to author
Forward
0 new messages