[REBOL] TCP question
From: robert:muench:robertmuench at: 10-Mar-2004 19:40
Hi, I'm playing around with client/server via TCP. I'm using the
http-post-form function on the client side. I want to send a binary file
to the server and write it than to a file. Here is what I do:
===Client
http-post-form <URL> reduce reduce ["data" to-string compress read/binary
%test.bin]
===Server
write/binary %test1.bin decompress to-binary request/data
And this is the error I get on the server side:
** Script Error: Not enough memory
** Where: switch
** Near: write/binary %test1.bin decompress to-binary request/data
What's the problem here? I think it has something to do that the binary
data gets mangeled while doing the POST. Is GET the better way? I just
want to be able to pack arbitrary data and send it via a CGI to a running
Rebol process, unpack and process it there.
The strange thing is that the code works for a binary file with size 1000 bytes. Hmm...
wasn't this the POST limit? Robert