1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-23 00:00:06 +01:00
libwebsockets/minimal-examples/http-client
Andy Green 272dba8307 http: redo redirects to follow close flow
Until now although we can follow redirects, and they can promote the
protocol from h1->h2, we couldn't handle h2 wsi reuse since there are many
states in the wsi affected by being h2.

This wipes the related states in lws_wsi_reset() and follows the generic
wsi close flow before deviating into the redirect really close to the end,
ensuring we cleaned out evidence of our previous life properly.

h2->h2 redirects work properly after this.

The max number of redirects is increased from 3 -> 4 since this was seen in
the wild with www and then geographic-based redirects.
2021-06-22 15:55:29 +01:00
..
minimal-http-client http: redo redirects to follow close flow 2021-06-22 15:55:29 +01:00
minimal-http-client-attach solaris: pthread is not a ptr 2021-03-08 20:44:10 +00:00
minimal-http-client-captive-portal type comparisons: fixes 2021-01-05 10:56:38 +00:00
minimal-http-client-certinfo mbedtls: add AKID and SKID support 2021-06-22 15:55:29 +01:00
minimal-http-client-custom-headers LE-root-cert-update 2021-01-13 04:32:13 +00:00
minimal-http-client-h2-rxflow ctest: adapt background script 2021-01-26 07:48:10 +00:00
minimal-http-client-hugeurl sai-resource 2021-02-24 08:56:27 +00:00
minimal-http-client-jit-trust tls: JIT Trust 2021-06-22 15:55:29 +01:00
minimal-http-client-multi http: redo redirects to follow close flow 2021-06-22 15:55:29 +01:00
minimal-http-client-post ctest: mbedtls: disable spawned server valgrind 2021-02-03 08:49:59 +00:00
README.md minimal-http-client-custom-headers 2019-03-12 11:57:43 +08:00

name demonstrates
minimal-http-client-certinfo Shows how to gain detailed information on the peer certificate
minimal-http-client-custom-headers Shows how to send and receive custom headers (h1 only)
minimal-http-client-hugeurl Sends a > 2.5KB URL to warmcat.com
minimal-http-client-multi Connects to and reads https://warmcat.com, 8 times concurrently
minimal-http-client-post POSTs a form containing an uploaded file and a form variable, and captures the response
minimal-http-client Connects to and reads https://warmcat.com