That's not really an explanation.
HTTP is HTTP, and system.net.httpClient absolutely sends well-formed HTTP POSTs if you tell it to do so (correctly). It doesn't matter that 7.9 doesn't have the HTTP client function, the only relevant piece is that it has a server, in Webdev. If you're happy, good enough, I suppose, but at this point you and/or the support rep have basically gotten lucky, not explained what was actually going wrong.
2 Likes
I did get lucky. But after some further investigation I found the root of the problem. It was what @pturmel hinted at. The version was incorrect. It needed to be a http1 and not http2. I thought I set it correctly with the following code
client = system.net.httpClient()
response=client.post(url,version='HTTP_1_1', params)
response.getText()
But I was entering the version in the wrong place, it should have been the following:
client = system.net.httpClient(version='HTTP_1_1')
response=client.post(url, params)
response.getText()
This method and having the receiving pull the information using
request['params']
is what created a successful connection.
It seems like 8.1 defaults to http2 type connection which makes sense since Postman will automatically identify the correct connection. I’ve learned all these things after the fact, now that I have identified the problem.
2 Likes