CookieJar.getCookies

Retrieves (in Cookie-header form) the list of cookies that would be sent with a request to @uri.

If @for_http is %TRUE, the return value will include cookies marked "HttpOnly" (that is, cookies that the server wishes to keep hidden from client-side scripting operations such as the JavaScript document.cookies property). Since #SoupCookieJar sets the Cookie header itself when making the actual HTTP request, you should almost certainly be setting @for_http to %FALSE if you are calling this.

class CookieJar
string
getCookies
(,
bool forHttp
)

Parameters

uri URI

a #SoupURI

forHttp bool

whether or not the return value is being passed directly to an HTTP operation

Return Value

Type: string

the cookies, in string form, or %NULL if there are no cookies for @uri.

Meta

Since

2.24