linkcheck.cookies

Parsing of cookies.

Functions

from_file(filename)

Parse cookie data from a text file in HTTP header format.

from_headers(strheader)

Parse cookie data from a string in HTTP header (RFC 2616) format.

linkcheck.cookies.from_file(filename)[source]

Parse cookie data from a text file in HTTP header format.

Returns

list of tuples (headers, scheme, host, path)

linkcheck.cookies.from_headers(strheader)[source]

Parse cookie data from a string in HTTP header (RFC 2616) format.

Returns

list of cookies

Raises

ValueError for incomplete or invalid data