Thanks. I seem to have HTTPie and CURL working OK, in that when I enter HTTP in my command prompt it comes back with the valid usage, as per that guide you linked.
But how do I input the example he has? This one.
C:> http POST localhost:50231/api/Contact name=scott age:=100
HTTP/1.1 200 OK
Content-Length: 26
Content-Type: application/json; charset=utf-8
Date: Fri, 17 Aug 2012 21:59:51 GMT
Server: Microsoft-HTTPAPI/2.0
{
"age": 100,
"name": "scott"
}
I'm thinking the second line onwards is the response so as the first line starts with c:> it looks like command prompt, in which case the same command for me gives
http: error: ConnectionError: HTTPConnectionPool(host='localhost', port=50231): Max retries exceeded with url: /api/Contact (Caused by NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it')) while doing POST request to URL: localhost:50231/api/Contact
Maybe it just needs something specific set up which I don't have. maybe my firewall has rejected it (on an internal connection request?)
But more to the point I'm assuming I am now at the point where I'm going to start doing a PERL script, to make the connection to Octopus then pass the parameters - is that so?
Last edited by: smokie on Sun 13 Jan 19 at 18:57
|