1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib/core-net
Andy Green 0f7f27801e http redirect: 303: force method to GET
This teaches http client stuff how to handle 303 redirects... these
can happen after POST where the server side wants you to come back with
a GET to the Location: mentioned.

lws client will follow the redirect and force GET, this works for both
h1 and h2.  Client protocol handler has to act differently if it finds
it is connecting for the initial POST or the subsequent GET, it can
find out which by checking a new api lws_http_is_redirected_to_get(wsi)
which returns nonzero if in GET mode.

Minimal example for server form-post has a new --303 switch to enable
this behaviour there and the client post example has additions to
check lws_http_is_redirected_to_get().
2019-11-17 10:47:01 +00:00
..
adopt.c adopt: improve logging of server adopt fail 2019-10-14 07:08:57 +01:00
client.c client: make external http proxying optional 2019-08-26 09:58:57 +01:00
close.c http redirect: 303: force method to GET 2019-11-17 10:47:01 +00:00
connect.c http_proxy: fixes 2019-11-15 08:28:50 +00:00
detailed-latency.c detailed latency stats 2019-09-22 03:06:59 -07:00
dummy-callback.c wsproxy: decrement client rx buflist size at server side tx 2019-10-28 13:20:45 +00:00
lws-dsh.c Coverity fixes 2019-08-19 10:12:20 +01:00
network.c adopt: improve logging of server adopt fail 2019-10-14 07:08:57 +01:00
output.c LWS_WITH_UDP 2019-10-12 12:41:14 +01:00
pollfd.c detailed latency stats 2019-09-22 03:06:59 -07:00
private-lib-core-net.h http redirect: 303: force method to GET 2019-11-17 10:47:01 +00:00
sequencer.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
server.c illumos: fix build errors 2019-11-04 13:49:13 +00:00
service.c lws_state and system state 2019-09-22 09:35:07 -07:00
sorted-usec-list.c unix: sul schedule rename internal api and call regardless of existing timeout 2019-11-01 07:07:33 +00:00
state.c wsi flags: extra encodings 2019-10-12 12:41:14 +01:00
stats.c private.h: rename to contain dir 2019-08-15 10:49:52 +01:00
vhost.c coverity: use function comments to clear false positives 2019-10-12 12:41:14 +01:00
wsi-timeout.c cgi: reenable h1 with chunking 2019-11-16 09:00:15 +00:00
wsi.c lws_get_tsi 2019-10-29 09:14:42 +00:00