[REBOL/IT] Problema con POST data

  • From: "Alessandro Manotti" <ale870@xxxxxxxxx>
  • To: rebol-it@xxxxxxxxxxxxx
  • Date: Fri, 28 Sep 2007 18:53:38 +0200

Sto tentando di inviare ad un mio server cheyenne dei dati in POST, ma
sembra non accettare files binary maggiori di circa 60kb (piu` o meno).

Iio invio i dati con il seguente programma:

readFile: read/binary to-file (get-face nome)
read/custom http://127.0.0.1/send_data.cgi reduce ['post readFile]

"readFile" contiene i dati da manadare.

Nel server...

read-post: func [/local buffer][

    if system/options/cgi/request -method = "POST" [
        buffer: make string! 16384
        data: copy ""

        while [positive? read-io system/ports/input buffer 16384][
            append data buffer
            clear buffer
        ]
    ]

    write/binary/append %post_file ( data)

];read-post

Il problema sembra essere in  "read/custom".

Potete aiutarmi?


-- 

//Alessandro

http://sguish.wordpress.com
http://laccio.wordpress.com

-- 

//Alessandro

http://sguish.wordpress.com
http://laccio.wordpress.com

Other related posts: