-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serving POST request via HTTPS #3211
Comments
Hi Andy, Any Suggestions towards this ? |
Just to summarize the above query -> While what if the file from where the POST is available in the mount ? Thanks, |
If I understood it, does this help?
|
Yeah this really helped. Thanks! |
Hi Andy,
ISSUE: Serving POST request via HTTPS only when the file is not available in mount point
While testing the minimal-http-server-form-post.c encountered a scenario where the /form1 in index.html is checked which is not available in the mount location.
so in lws_http_serve() wsi->http.fop_fd returns unable to open and return 1-> which is the value of m and enters m>0 loop.
and proceeds further to land in LWS_CALLBACK_HTTP_BODY from lws_read_h1
Our scenario is : mount point has a file userlogin.html , from where I get the text type name login and password , formaction is userlogin.html which is present in the mount. So lws_http_serve returns 0 (as we are able to open that file) and it's not landing to the callback for processing the POST request.
Attaching wireshark capture for userlogin.html post pkt
Wanted to know is this the way serving POST request is designed or am I missing something?
Creating the context as below :
Callback looks like this :
Thanks,
Som
The text was updated successfully, but these errors were encountered: