Not Authorized message when submitting POST request
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not Authorized message when submitting POST request
Submitting POST JSON request via Postman works perfectly. Imported the Postman collection to ReadyAPI but when executing the request, I'm receiving a Not Authorized message. Sample JSON below. Seems to be ignoring the auth section. Any ideas?
POST {service.endpoint}/clients/api HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/json
Content-Length: 2524
Host: {service.endpoint}
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.2 (Java/15)
{
"auth" : {
"user_id" : "19644",
"api_key" : "dbf067d8609igiot8i6troiuvoiuyfuyfg43ea702d"
},
"order" : {
"type" : "New",
"client_file_number" : "123456789A",
"lender" : "Some Bank",
"loan_amount" : "200000",
"loan_number" : "1234-5678-90",
"full_street_address" : "123 Main St.",
"street_number" : "123",
"street_name" : "Main St."
}
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah just reiterating what Rao already said.
If you compare the full RAW request (URI, payload and headers) from your request in Postman against the same request in ReadyAPI youll see the differences and it's likely to be missing headers you just need tp addinto ReadyAPI.
Cheers,
Rich
