You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that have no idea how to read POST request content (json file as on this example) since there is no LWS_CALLBACK_HTTP_BODY nor LWS_CALLBACK_HTTP_BODY_COMPLETION callbacks.
Have read header tokens WSI_TOKEN_HTTP_CONTENT_TYPE and WSI_TOKEN_HTTP_CONTENT_LENGTH which gives correct data: "application/json" and 40 bytes respectively. So, lws have complete POST frame.
Please advice me how to read POST content.
The text was updated successfully, but these errors were encountered:
I figured it out that if I use lws_callback_http_dummy as return value of protocol callback, LWS_CALLBACK_HTTP_BODY won't trigger. So, I used return 0 and char* body = (char*)in; gives Body. But I for my use case, I am trying to integrate library to unreal engine. So, I need to create a proper response logic.
Dear folks,
have use 4.3.3 revision, configured as http server using mount and basic auth. Origin and default target are set to json file.
Works fine with POST request from client - test.json file is send correctly:
The problem is that have no idea how to read POST request content (json file as on this example) since there is no
LWS_CALLBACK_HTTP_BODY
norLWS_CALLBACK_HTTP_BODY_COMPLETION
callbacks.Have read header tokens
WSI_TOKEN_HTTP_CONTENT_TYPE
andWSI_TOKEN_HTTP_CONTENT_LENGTH
which gives correct data: "application/json" and 40 bytes respectively. So, lws have complete POST frame.Please advice me how to read POST content.
The text was updated successfully, but these errors were encountered: