I have a request from a customer to implement some functions in VDF 17.1.

In their end they have some sort of RestAPI. All the samples they sent me uses this software called CURL.

One of the post operations does not return anything else but a simple ok result (Message 200 from the web).
If issued in dos, it sets a cookie. If I do a HTTPPostRequest in VDF I would like to get the created cookie, but I just don't know how.

An example of sending a login and getting a response back in form of a cookie (I guess it is used for a sessionticket) using the CURL

C:\Curl\curl -v -X POST -d "domain_id=texi&username=myname&password=mypassword" http://193.xxx.xxx.xxx:41900/Login
The response from the server is:

* About to connect() to 193.xxx.xxx.xxx port 41900 (#0) * Trying 193.xxx.xxx.xxx... connected * Connected to 193.xxx.xxx.xxx (193.xxx.xxx.xxx) port 41900 (#0) > POST /login HTTP/1.1 > User-Agent: curl/7.16.4 (i386-apple-darwin9.0) libcurl/7.16.4 OpenSSL/0.9.7l zlib/1.2.3 > Host: 193.xxx.xxx.xxx:41900 > Accept: */* > Content-Length: 48 > Content-Type: application/x-www-form-urlencoded > < HTTP/1.1 200 OK < Set-Cookie: JSESSIONID=uw90urfx2j6c1samv49q4l3ae;Path=/ < Expires: Thu, 01 Jan 1970 00:00:00 GMT < Content-Length: 0 < Server: Jetty(8.0.4.v20111024) < * Connection #0 to host 193.xxx.xxx.xxx left intact * Closing connection #0
So what I want to do is to use the HTTPPostRequest in VDF 17.1 if possible.

How to get the JSESSIONID cookie that's returned?

This world, with RestAPI, JSON is totally new to me.

Any help, point to the right direction etc. is greatly appreciated.