qhttpserver icon indicating copy to clipboard operation
qhttpserver copied to clipboard

cannot get the body data

Open icesword001 opened this issue 8 years ago • 2 comments

the body has been empty

icesword001 avatar Sep 20 '17 01:09 icesword001

Please describe the situation more and show a sample of your code. qhttpserver is streaming, so it has to be used correctly (listen to the right events) to be able to access the body.

nikhilm avatar Oct 04 '17 15:10 nikhilm

have a error in when compile source

error source(qhttpserver-master\http-parser\http_parser.c): int hasBody = parser->flags & F_CHUNKED || (parser->content_length > 0 && parser->content_length != ULLONG_MAX); if (parser->upgrade && (parser->method == HTTP_CONNECT || (parser->flags & F_SKIPBODY) || !hasBody)) { /* Exit, the rest of the message is in a different protocol. */ UPDATE_STATE(NEW_MESSAGE()); CALLBACK_NOTIFY(message_complete); RETURN((p - data) + 1); } the reason of error: Error: C2143: syntax error : missing ';' before 'type' Error: C2065: 'hasBody' : undeclared identifier

killerfox avatar Oct 24 '17 01:10 killerfox