Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Post Method?

 [1/2] from: stefan::falk::slg::se at: 23-Apr-2001 15:36


Hi list, I know this has been brought up before, but I never heard of a real answer. When sending data through a form using Post, how should I get the size of the data sent? Right now I'm using: read-io system/ports/input data: make string! 2000 2000 data: replace/all data "%0D%0A" "<br>" data: make object! decode-cgi data But when the data goes over 2000 bytes (?) it gets cut off, is there any way to make it check how much data has been sent and allocate the space for that? I'll be having forms sending over 2000 bytes and would really need it. /Regards Stefan Falk - www.amigaextreme.com

 [2/2] from: chris:ross-gill at: 23-Apr-2001 12:09


Hi Stefan, try using: content-length: 20 + load system/options/cgi/content-length ; content length with a little to spare post-data: make string! content-length read-io system/ports/input post-data content-length - Chris