Declaration [src]

soup_cookies_from_request (
  SoupMessage* msg

Description [src]

Parses msgs Cookie request header and returns a GSList of SoupCookies.

As the “Cookie” header, unlike “Set-Cookie”, only contains cookie names and values, none of the other SoupCookie fields will be filled in. (Thus, you can’t generally pass a cookie returned from this method directly to soup_cookies_to_response().)



Type: SoupMessage

A SoupMessage containing a “Cookie” request header.

The data is owned by the caller of the function.

Return value

Type: 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.