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

webserv.r and POST

 [1/6] from: eric::ehrichweiss::com at: 25-Dec-2004 21:53


Anyone use webserv.r with POST data? I've had success with GET but for some reason I can't get it to handle POST data at all. Anyone know what I might be doing wrong? Eric

 [2/6] from: volker::nitsch::gmail::com at: 26-Dec-2004 17:28


On Sat, 25 Dec 2004 21:53:29 -0500, Eric Haddix <[eric--ehrichweiss--com]> wrote:
> > Anyone use webserv.r with POST data? I've had success with GET but for > some reason I can't get it to handle POST data at all. Anyone know what > I might be doing wrong? >
IIRC webserv.r passes the port in a different way to a webserver. Some methods don't work then. Maybe Cal found a workaround, it seems he passes data in a temp-file now, instead of passing the real port. In some old code i use this with both apache and webserv.r : read-post: func [/local data len] [ either system/options/cgi/request-method = "POST" [ set-modes system/ports/input [lines: false binary: true no-wait: false] len: to-integer system/options/cgi/content-length data: to-string copy/part system/ports/input len ] [ data: system/options/cgi/query-string ] data ]
> Eric > -- > To unsubscribe from the list, just send an email to rebol-request > at rebol.com with unsubscribe as the subject. >
-- -Volker Any problem in computer science can be solved with another layer of indirection. But that usually will create another problem. David Wheeler

 [3/6] from: Izkata:Comcast at: 26-Dec-2004 10:51


I use the Micro Web Server/Tiny Web Server when messing around with that stuff.. Dunno how similar it is to what your using.. Anyways, in it, POSTed data appears in http-port/state/inBuffer (http-port is the port to the compuer that POSTed)

 [4/6] from: eric:ehrichweiss at: 26-Dec-2004 18:42


Apparently my mail server's filesystem was full and wouldn't receive any messages. If someone sent a reply, could you please send me a copy of it privately(no use in wasting list bandwidth with dupes). Thanx in advance Eric Eric Haddix wrote:

 [5/6] from: pwawood::mango::net::my at: 27-Dec-2004 7:52


Eric There were a couple of replies to your message. You will shortly be able to view them in the mailing list archive at www.rebol.org. Your message is already there, the replies should soon follow. Regards Peter

 [6/6] from: pwawood::mango::net::my at: 27-Dec-2004 7:59


Eric You may also want to check the ML archive for messages relating to http;//post via the topic index. Look under "http" & "post". There may be some relevant messages that will help. Regards Peter