Declaration [src]

soup_cookies_from_response (
  SoupMessage* msg

Description [src]

Parses msgs Set-Cookie response headers and returns a GSList of SoupCookies.

Cookies that do not specify “path” or “domain” attributes will have their values defaulted from msg.


msg SoupMessage

A SoupMessage containing a “Set-Cookie” response header.

 The data is owned by the caller of the function.

Return value

Returns: A list of SoupCookie*

A GSList of SoupCookies, which can be freed with soup_cookie_free().

 The caller of the function takes ownership of the data, and is responsible for freeing it.