I'm making a http server that merely allows access to my folder, download the files in it and also uploading to a folder. So far I have already done most of it, the only thing left is the uploading of the files. Whenever I receive files from a client, they send chunked datas. Which I dont understand to decode. All I need is a function that decodes the data that i receive on my socket. Or even a way so that I could unallow the browser to send a Chunked transfers. Thanks in advance. ^^
whoa thanks! :)I over looked that one. ^^"
2009-05-29 19:46:45
Hmmm, sorry but I dont understand that pseudo-code that much. :(A code for c would be nice, if there is any. :)
2009-05-29 19:51:39
Go to the specification and try to understand it - it is meant to be clear enough to be understood. I'd allow that 'read chunk-data and CRLF' doesn't make it 100% explicit that you need to read chunk-size bytes of chunk-data, but it doesn't take a lot of meditation to realize that it is what is meant.
Jonathan Leffler
2009-05-31 20:01:03
A:
Chunked transfer is part of the HTTP/1.1 spec. If your server only responded with HTTP/1.0 responses, I would expect the client to upload the data without using chunks.
David
2009-05-29 19:30:07