{"id":18643592,"url":"https://github.com/webispy/h2curl","last_synced_at":"2025-11-05T00:30:34.060Z","repository":{"id":47131948,"uuid":"401285956","full_name":"webispy/h2curl","owner":"webispy","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-13T00:18:10.000Z","size":854,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T11:14:11.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webispy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-30T09:24:40.000Z","updated_at":"2021-09-13T00:18:11.000Z","dependencies_parsed_at":"2022-09-21T05:34:04.484Z","dependency_job_id":null,"html_url":"https://github.com/webispy/h2curl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webispy%2Fh2curl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webispy%2Fh2curl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webispy%2Fh2curl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webispy%2Fh2curl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webispy","download_url":"https://codeload.github.com/webispy/h2curl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239446756,"owners_count":19640189,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T06:07:28.087Z","updated_at":"2025-11-05T00:30:34.023Z","avatar_url":"https://github.com/webispy.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP/2 POST test using curl library\n\nTest environment\n* Architecture: x86_64\n* OS: Ubuntu 20.04\n\nTest scenario\n\n    client -\u003e server: HTTP/2 GET /longPolling  (Stream-1)\n    server -\u003e client: Header response\n    server -\u003e client: Dummy data\n    server -\u003e client: (Stream hold for 10 seconds)\n    ...\n    after 7 seconds\n    ...\n    client -\u003e server: HTTP/2 POST /post  (Stream-3)\n    server -\u003e client: Header response\n    server -\u003e client: (Stream hold for 5 seconds)\n    client -\u003e server: Send post data (100 bytes)\n    client -\u003e server: Send post data (100 bytes)\n    ...\n\nSimple test server code (node.js, tested with v14.17.5 LTS version)\n* [index.js](server/index.js)\n\nHTTP/2 POST test client code\n* [h2post.c](src/h2post.c)\n\n## Prepare\n\nClone this repository and update submodules. (nghttp2, curl)\n\n    $ git clone https://github.com/webispy/h2curl.git\n    $ cd h2curl\n    h2curl$ git submodule update --init\n\n## Curl library version\n\n### abnormal test case - [c4e6968](https://github.com/curl/curl/commit/c4e6968127e876b01e5e0b4b7cdbc49d5267530c)\n\n    cd externals/curl\n    curl$ git reset --hard\n    curl$ git clean -df\n    curl$ git checkout c4e6968\n\n### normal test case - [842f73d](https://github.com/curl/curl/commit/842f73de58f38bd6e285e08bbd1adb6c17cb62cd)\n\n    cd externals/curl\n    curl$ git reset --hard\n    curl$ git clean -df\n    curl$ git checkout 842f73d\n\n## Run sample HTTP/2 server\n\nIn the `server` directory, there is a sample server program written in node.js for testing.\n\n    $ cd server\n    server$ npm install\n    server$ npm start\n\n## Build and run sample POST example\n\nThe test program used the [http2-upload.c](https://curl.se/libcurl/c/http2-upload.html) file provided in the [libcurl example](https://curl.se/libcurl/c/example.html) with some modifications.\n\nExecuting the commands below builds the nghttp2 library and curl library and then builds the example application.\n\n    $ mkdir build \u0026\u0026 cd build\n    build$ cmake ..\n    build$ make\n\nAnd in order to access the data file to be transmitted when executing the example, you need to copy the `dummy.dat` file to the directory to be executed.\n\n    build$ cp ../dummy.dat .\n    build$ ./src/h2post\n\n## Test result\n\n### abnormal test case\n\n* [server log](log/fail_server.log)\n* [client log](log/fail_client.log) - 21 MB !!!\n\n### normal test case\n\n* [server log](log/ok_server.log)\n* [client log](log/ok_client.log)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebispy%2Fh2curl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebispy%2Fh2curl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebispy%2Fh2curl/lists"}