Hello,
I am working on HTTP Server in LiveCode.
https://github.com/toddgeist/lchttpd
I don't really need to support POST, but I would like to try. However, when I post something to the open Socket, I don't see any of the POST body. I am curious about why that is. Does anyone have any clues? Any examples that support Post?
Thanks
Todd
Sockets and Post
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 9833
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Sockets and Post
I haven't worked with POST from within mchttd before so I don't have a ready solution, but in the old CGI engine we got POST data by reading from stdIn until EOF after the original request launched the CGI app. So this is just a guess (an ignorant one, given that I haven't read the RFC for POST), I'm wondering if a subsequent read on the socket is all that's needed.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Sockets and Post
Thats worth trying. Thanks
Todd
Todd
Re: Sockets and Post
Ok I got it figured out. It's all there. Just need to parse it out.
Todd
Todd