With this script on the server:

#!mc
on startup
   if $REQUEST_METHOD is "POST" then
    read from stdin until empty
    put it into buffer
    put "Content-Type: text/plain" & cr
    put "Content-Length:" && the length of buffer & cr & cr
    put buffer  
   end if
end startup

And this script in a local stack:

on mouseUp
  put "data=" & urlEncode( fld "s") into tData
  post tData to url "http://www.fourthworld.net/cgi-bin/t.mt";
  put it into fld "r"
end mouseUp


...sometimes I get data returned from the server as expected, other times
"it" is empty.

I'm using the latest version of libURL downloaded from runrv.com, under MC
2.4.3 build number 3.

Any clues on why it's sometimes working and sometimes not?

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 2.0: Publish any Database on Any Site
 ___________________________________________________________
 [EMAIL PROTECTED]       http://www.FourthWorld.com
 Tel: 323-225-3717                       AIM: FourthWorldInc

_______________________________________________
metacard mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/metacard

Reply via email to