./curl.exe --cacert 192.168.1.183.crt --data "Username=admin&Password=admin" -i -v https://192.168.1.183/rest/login
HTTP/1.1 200 OK Set-Cookie: PHPSESSID=ima0r3nkaeg8mo0suln67vg4m7; path=/; secure Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Content-type: text/html; charset=UTF-8 Transfer-Encoding: chunked Date: Tue, 17 May 2011 18:57:03 GMT <?xml version="1.0"> <root> <status> <http_code>200</http_code> </status> </root>
Use the PHPSESSID=ima0r3nkaeg8mo0suln67vg4m7 cookie from Set-Cookie from above login resource response for subsequent CURL Rest calls.