>> While working on some routines to send POST data to CGIs, I'm having some
>> trouble getting the data in the right format...
>
> What kind of trouble?
> Trouble with extracting the posted data ?
> Trouble with the encoding of 8-bit ASCII chars ?
Mostly that the server is reporting that the header contains invalid data.
Yesterday's error was that I'm missing a semicolon somewhere, but in
reviewing the Interarchy dump I can't find a semicolon present when I use a
browser that is not present when I make the same call from MC. :(
>> 1. Would it be any easier to take control over the whole transaction by
>> using sockets instead of relying on MC's POST? My first hunch is that it
>> would not...
>
> Your hunch is correct. Sockets are much more complicated because they are at a
> lower level of abstraction, e.g. more details to attend to than would normally
> be the case when the process is handled for you.
That's encouraging. It seems silly to reproduce the whole protocol just
because of header errors.
>> ... but it's been a bear dealing with some CGIs.
>
> I recommend you duke it out with the CGI protocol some more before giving up
> on this relatively easy protocol. Unless, of course, you have some very
> special protocol needs that CGI is not designed to handle or to handle-well.
> IOW, with sockets, you could create your own custom communication protocol. A
> protocol that doesn't have all of the un-necessary overhead of CGI, for
> example. You could conceivably create a protocol custom-made for MetaCard
> stacks to communicate via the Internet in their own native-tongue.
If only. For this project I need to perform the same calls that a browser
makes, only from MC instead of a browser.
For all other projects, I'd love to use MC on the server side as well, but I
haven't found a shared hosting service that will let me do that. If the
only alternative is to quintuple my hosting costs with colocation I'd rather
just continue using Perl.
--
Richard Gaskin
Fourth World Media Corporation
Multimedia Design and Development for Mac, Windows, UNIX, and the Web
_____________________________________________________________________
[EMAIL PROTECTED] http://www.FourthWorld.com
Tel: 323-225-3717 ICQ#60248349 Fax: 323-225-0716
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.