Forum Discussion

soalri's avatar
soalri
Occasional Contributor
8 years ago

Post type request rest in soapui

Hi all, 

I have a problem with  the way to send data in post request < I don't have to receive a void access token>  here is my request for example.

maybe a problem her it the type of media,  is it correct how i  send my data {officeID : "jhg" ..... im not using media type : application/JSON as below ? 

 

Post  

 

any help a appreciate :) thanks a lot 

PS : sorry for my english i don't know if im clear  

  • Yes, it looks like you're sending JSON content, so you should be using Content-Type: application/json on your request.

     

    Have you tried it?

  • JHunt's avatar
    JHunt
    Community Hero

    Yes, it looks like you're sending JSON content, so you should be using Content-Type: application/json on your request.

     

    Have you tried it?

    • soalri's avatar
      soalri
      Occasional Contributor

      yes, i changed the value of type media to Application/json and it works, thank you for help