[Libwebsockets] lwsts[7873]: ****** ec017ca0 Sending new, pending truncated ...

satya gowtham kudupudi satyagowtham.k at gmail.com
Tue Jun 14 19:00:18 CEST 2016

I'm making http request to libwebsocket server using raw sockets.
I'm sending below headers

"POST /index.html HTTP/1.1\r\n"
"User-Agent: myagent\r\n"
"Content-Type: text/json; charset=utf-8\r\n"
"Host: myhost\r\n"
"Content-Length: " + ccl + "\r\n"
"Connection: Keep-Alive\r\n\r\n"

Response I got is "Forbidden request"

I think the mistake is in User-Agent header field. Please help me.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://libwebsockets.org/pipermail/libwebsockets/attachments/20160614/896978a8/attachment.html>

More information about the Libwebsockets mailing list