Forum Discussion
You're getting different results from two different clients. So their requests are likely different. Most likely, it is the Accept header. The client should specify what type of content it wants to receive.
Accept: application/json
or
Accept: application/xml
etc
Then server should reply with matching Content-Type (if it's not an error).
Thanks a lot.. However, where should i mention this in my script?
Actually, when i hit from soap ui, i could see application/json in content type in raw tab. And even i checked my xml file deployed in server and i could see that media type is mentioned as application/json.
Could you please let me know where should i mention this accept header? in groovy script or in server?
- JHunt6 years agoCommunity Hero
Accept header should be specified by the client. For example, in Postman or what you called the "other component."
Related Content
- 5 years ago
- 8 years ago
Recent Discussions
- 15 years ago