Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1756842471, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ { "schema":"libjg2-1", "oid":{ "oid": "82783aefcc9e88fba798bd5a56482b816a56be4f", "alias": [ "refs/tags/v4.1.4"]},"tree": [ { "name": "CMakeLists.txt","mode": "33188", "size":749}, { "name": "README.md","mode": "33188", "size":1760}, { "name": "minimal-http-client-custom-headers.c","mode": "33188", "size":5694}, { "name": "warmcat.com.cer","mode": "33188", "size":4750}],"s":{"c":1756842471,"u": 588}} ,{"schema":"libjg2-1", "cid":"337a6435a3226a518bc1aaa538570aad", "oid":{ "oid": "82783aefcc9e88fba798bd5a56482b816a56be4f", "alias": [ "refs/tags/v4.1.4"]},"blobname": "minimal-examples/http-client/minimal-http-client-custom-headers/README.md", "blob": "# lws minimal http client custom headers\n\nThis http client application shows how to send and receive custom headers.\n\nThis currently only works on http 1, so the app forces that even if h2 enables.\n\n## build\n\n```\n $ cmake . \u0026\u0026 make\n```\n\n## usage\n\nCommandline option|Meaning\n---|---\n-d \u003cloglevel\u003e|Debug verbosity in decimal, eg, -d15\n-l| Connect to https://localhost:7681 and accept selfsigned cert\n-n|no TLS\n\nThe app looks for a custom header \u0022test-custom-header\u0022 sent by warmcat.com.\n\n```\n $ ./lws-minimal-http-client-custom-headers\n[2019/03/11 05:46:45:7582] USER: LWS minimal http client Custom Headers [-d\u003cverbosity\u003e] [-l] [--h1]\n[2019/03/11 05:46:45:7671] NOTICE: created client ssl context for default\n[2019/03/11 05:46:46:7812] USER: Connected with server response: 200\n[2019/03/11 05:46:46:7812] NOTICE: callback_http: custom header: 'hello'\n[2019/03/11 05:46:46:7814] USER: RECEIVE_CLIENT_HTTP_READ: read 1024\n...\n```\nYou can use the -n and -l to make this test app connect to localhost:7681 over http,\nand confirm the \u0022dnt:1\u0022 header was sent either by tcpdump or by running the test\nserver on :7681 with -d1151\n\n```\n[2019/03/11 05:48:53:6806] PARSER: WSI_TOKEN_NAME_PART 'd' 0x64 (role\u003d0x20000000) wsi-\u003elextable_pos\u003d0\n[2019/03/11 05:48:53:6807] PARSER: WSI_TOKEN_NAME_PART 'n' 0x6E (role\u003d0x20000000) wsi-\u003elextable_pos\u003d567\n[2019/03/11 05:48:53:6807] PARSER: WSI_TOKEN_NAME_PART 't' 0x74 (role\u003d0x20000000) wsi-\u003elextable_pos\u003d-1\n[2019/03/11 05:48:53:6807] PARSER: WSI_TOKEN_NAME_PART ' ' 0x20 (role\u003d0x20000000) wsi-\u003elextable_pos\u003d-1\n[2019/03/11 05:48:53:6807] PARSER: WSI_TOKEN_NAME_PART '1' 0x31 (role\u003d0x20000000) wsi-\u003elextable_pos\u003d-1\n' 0x0D (role\u003d0x20000000) wsi-\u003elextable_pos\u003d-1NAME_PART '\n[2019/03/11 05:48:53:6807] PARSER: WSI_TOKEN_NAME_PART '\n```\n\n","s":{"c":1756842471,"u": 287}} ],"g": 2237,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 1, "si": 0, "db":0, "di":1, "sat":0, "lfc": "0000"}