I'm setting my first steps in the usage of PostMan, a tool meant for sending HTTP requests to URLs.
I'm trying to send a "POST" request to the machine http://PAPSVS01:5001/pxml/MES/Feedbacks
(some local machine).
According to the documentation, these are the headers I should include:
Name | Value |
---|---|
Language | EN |
X-Progress-Authorization | xqK34... (I'm not writing the entire password on the internet :-)) |
Next to those headers, there are some default ones too:
According to the documentation, the body should look as follows:
{"ItemType": "Pallet","GlobalID": "a5d60000-56b7-0050-165e-08dce86ffa2f", "Feedback": {"Code": “Wall preparation", "InfoValue": "string_InfoValue","ProdDate": "2024-11-26T09:48:49.890Z","FbVal": [ {"T": "string_T","V": "string_V" } ] }}
=> I've replaced the word "string" by a more relevant value for reference reasons.
Using this combination of header and body and sending it as a "POST" request to the mentioned URL, I get the following error message:
..."ExtendedMessage": "R5dLib.GenericUtils.UserException: 417 - Expectation failed: invalid model"
According to a StackOverflow post on the subject, I should handle this using some "configuration" parameter (System.Net.ServicePointManager.Expect100Continue = false;
).
How can I do this in the mentioned Postman tool?
Edit1: In the meantime, I've discovered that the connection to that machine is blocked, as you can see here:
telnet PAPSVS01 5001Connecting To PAPSVS01...Could not open connection to the host, on port 5001: Connect failed
... how can I get an expectation related error message if I can't even establish a connection to that machine?