#2 Cookie-type should provide name/value (record list or assoc-list)

open
nobody
1
2013-02-09
2013-02-09
oliver
No

Cookies: record / record list for cookies, instead of only plain strings/string list.

When using
connection#set_verbose true
ocaml-curl (or the underlying curl-lib?)
prints out the name and value of the
cookie-fields, e.g. "domain", "path", "expire"...

So there somewhere this is known.
When using ocaml-curl, the result is a plain string,
with no information about the fieldnames.

I also did not found information about the location of the
fields in the string, so parsing would need reverse engineering.

I would like to have a result-type, which has records
or a tuple-list [(name,value; ...]

As fast solution, can you please explain the location of the cookie-fields,
so that I know how to get them out of the string/string list?!

(For backward compatibility there might be additional functions that provide
the named values, instead of changing the types of the existing cookie functions.)

Discussion


Log in to post a comment.