I'm an idiot!
The first code, with socket, I forget the new line to close the header, but
with the server libsoup I have forgotten the 200 OK response.
2011/10/1 andrea zambon zamby@gmail.com
Done.
void default_handler (Soup.Server server, Soup.Message msg, string path,
On Sa, 2011-10-01 at 15:18 +0200, andrea zambon wrote:
Hi,
I'm writing a little http server to send some binary data.
I wonder if it wouldn't be easier to use the one from libsoup.
___
vala-list mailing list
vala-list@gnome.org
Hi,
I'm writing a little http server to send some binary data.
example:
void process_request (InputStream input, OutputStream output) throws Error {
var file = File.new_for_path (audio.mp3);
var file_stream = file.read ();
var data_stream = new DataInputStream (file_stream);
On Sat, Oct 1, 2011 at 3:18 PM, andrea zambon zamby@gmail.com wrote:
but using firefox, when I save, the data do not arrive.
Why?
Using HTTP 1.0 you must close the connection, and you're missing the content
length (or alternatively chunked encoding).
(sorry for the duplicate mail, I