FFmpeg
Loading...
Searching...
No Matches
httpcookie.c File Reference
#include <inttypes.h>
#include <stdio.h>
#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "libavutil/parseutils.h"
#include "libavformat/http.h"

Go to the source code of this file.

Functions

int main (void)
 

Variables

static const char *const cookies []
 
static const char *const dates []
 

Function Documentation

◆ main()

int main ( void )

Definition at line 64 of file httpcookie.c.

Variable Documentation

◆ cookies

const char* const cookies[]
static
Initial value:
= {
"sid=secret",
"sid= secret ; Path= /a ; Domain= .example.com",
"domain=localhost",
"path=secret; Domain=example.com; Path=/",
"sid=secret; =domain=example.com",
"sid=secret; Path=abc",
"sid=secret; Path=/a; Path=\"/\"",
"sid=secret; Secure; HttpOnly",
"sid=secret; Max-Age=0; Expires=Wed, 09 Jun 2100 10:18:14 GMT",
"sid=secret; Max-Age=-1",
"sid=secret; Max-Age=0; Max-Age=bad",
"sid=secret; Expires=Sunday, 06-Nov-1994 08:49:37 GMT; Expires=bad",
"sid=secret; Domain=example.com; Domain=",
"sid=secret; Max-Age=-; Expires=Wed, 09 Jun 2100 10:18:14 GMT",
"sid=secret; Max-Age=1x; Expires=Sunday, 06-Nov-1994 08:49:37 GMT",
"sid=sec\tret",
"sid=sec\rret",
"si\x7f" "d=secret",
"sid",
"=secret",
"; sid=secret",
"",
}

Definition at line 27 of file httpcookie.c.

Referenced by cookie_string(), ff_http_bind_cookies_to_host(), get_cookies(), main(), and parse_cookie().

◆ dates

const char* const dates[]
static
Initial value:
= {
"Wed, 21 Oct 2015 07:28:00 GMT",
"Wednesday, 21-Oct-15 07:28:00 GMT",
"Wed Oct 21 07:28:00 2015",
"Thu, 01 Jan 1970 00:00:00 GMT",
"Thu, 29 Feb 2024 12:00:00 GMT",
"Thu, 29 Feb 2023 12:00:00 GMT",
"Wed, 21 Oct 1600 07:28:00 GMT",
"Wed, 21 Oct 2015 24:00:00 GMT",
"120",
}

Definition at line 52 of file httpcookie.c.

Referenced by main().