Re: Sockets vs. POST

2001-03-05 Thread David Bovill

 This is the sort of thing that you need to do with matching genetic
 sequences, so I'm sure the algorithms are out there ...
 
 Sounds like a job for GREP! (which MetaCard does natively)
 

I think it's a bit more complicated than that -:) I mean before you start
testing you don't know what to match with what - where do you start? This
has been sorted out, so I figure it's not worth thinking about too hard.
Best probably to wait for Xavier to come back with an algorithm (if he's
listening -:)

 NB: five times the hosting costs for a dedicated server works out the same
 price for 5 people if my maths is right. If you include me that leaves 3
 more @ $20 a month.

 What are you driving at?

Ford Mondeo?

 I surmise that you are suggesting that five people
 get together and pitch in 20$ each pr month, for hosting services from a
 dedicated server. Is this correct? Will this service-provider host MetaCard
 CGI programs? Any restrictions? ... More details please.


Collocation - there are quite a few major providers offering a dedicated raq
server, running Linux for $99 a month. So yes to all the above. For CGI
hosting, Simon Lord is setting up a service for Metacard CGI's, and if I
remember correctly accounts start are arranged geometrically at around
$12.50 a month.

Running your own dedicated MC server with the ability to define your own
ports and nice simple protocols is another matter - for this you have to
have a dedicated server (not a shared solution). As above these come in
bigger chunks (ie around 5 times the price of a shared solution). This
usually includes around 5 times the disk space, and dedicated processing
power, but not a lot of help (you deal with it your self remotely). I don't
have personal experience running one of these, so anyone please chip in and
correct me...


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




RE: Sockets vs. POST

2001-03-05 Thread Monte Goulding

 Collocation - there are quite a few major providers offering a
 dedicated raq
 server, running Linux for $99 a month.

I'm in ;-)

But there is also a cheaper company than this. For 25 pounds (after a setup
fee) a company named UK2.net will give you a dedicated 10.2 GB Cobalt Raq3
server. What would that be $40-45?


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Sockets vs. POST

2001-03-02 Thread AlainFarmer

 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 ?

 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.

 ... 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.

Just a random thought  ;-)

Alain Farmer
mailto:[EMAIL PROTECTED]
__
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Sockets vs. POST

2001-03-02 Thread Richard Gaskin

 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#60248349Fax: 323-225-0716



Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Sockets vs. POST

2001-03-02 Thread David Bovill

 From: Richard Gaskin [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Fri, 02 Mar 2001 12:44:10 -0800
 To: [EMAIL PROTECTED]
 Subject: Re: Sockets vs. POST
 
 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.  :(
 

What would be really nice is to have something which would analyse tow text
files and colourize the bits that differed. This is the sort of thing that
you need to do with matching genetic sequences, so I'm sure the algorithms
are out there (Xavier -:), but an nice scriptable app would be a boon.

Anyone know of one?

NB: five times the hosting costs for a dedicated server works out the same
price for 5 people if my maths is right. If you include me that leaves 3
more @ $20 a month. I remember reading this thing about those "freeways" in
the States, where everyone drives the same speed? Well in California
apparently they closed one of the lanes to everyone - save those cars with 4
or more people in them; worked a treat with those willing to share zipping
along - getting to work much faster. Any Californians out there?


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Sockets vs. POST

2001-03-01 Thread Pierre Sahores

michael kann a crit :
 
 I've been using HTTPtracer on Windows to monitor HTTP
 traffic. It is one of the best designed programs I've
 ever used. When POSTING data to PWS/ASP/Access I
 noticed that I could POST from Netscape/Microsoft but
 not from Metacard. With HTTPtracer I discovered that
 the POST from Netscape/Microsoft actually goes in two
 parts. First it POSTS the headers, then it POSTS the
 data, in a following message. I concluded that
 Metacard just POSTS once, so the data doesn't get
 through.

Thank's Michael :-) If so, the sockets approach is probably, as Andu wrote
previously, the onest way to use to handle "POST" method from within mc.

Regards, Pierre

 
 --- Richard Gaskin [EMAIL PROTECTED] wrote:
  While working on some routines to send POST data to
  CGIs, I'm having some
  trouble getting the data in the right format and
  it's raise two questions:
 
  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, but it's been a bear dealing with some
  CGIs.
 
  2. Is there any better tool for Mac OS which will
  let me review all outging
  and incoming data on port 80 than Interarchy?  I
  find the format of
  Interarchy's stream dumps awfully noisy, with no
  evident options for
  reducing the displayed info to just the stream
  without all the commentary
  junk.
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/
 
 Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
 Info: http://www.xworlds.com/metacard/mailinglist.htm
 Please send bug reports to [EMAIL PROTECTED], not this list.

-- 
Pierre Sahores

WEB  VPN applications and databases servers
Inspection acadmique de la Seine-Saint-Denis
Qualifier et produire l'avantage comptitif

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




Re: Sockets vs. POST

2001-03-01 Thread root

Richard Gaskin wrote:
 
 While working on some routines to send POST data to CGIs, I'm having some
 trouble getting the data in the right format and it's raise two questions:
 
 1. Would it be any easier to take control over the whole transaction by
 using sockets instead of relying on MC's POST? 

Absolutely, you can send a more standards compliant header which some
servers may require. Michael Kann thinks that posting the header first
makes any difference which I doubt: it appears that way because of the
double empty space between the header and body. Make sure you have a
crlf after each line in the header and double crlf between the header
and body.

 My first hunch is that it
 would not, but it's been a bear dealing with some CGIs.
 
 2. Is there any better tool for Mac OS which will let me review all outging
 and incoming data on port 80 than Interarchy?  I find the format of
 Interarchy's stream dumps awfully noisy, with no evident options for
 reducing the displayed info to just the stream without all the commentary
 junk.

Interarchy allows you to uncheck any "stuff" you don't want to see: the
minimum is data in ascii and hex (on the left side).

 
 Thanks in advance -
 
 --
  Richard Gaskin

Andu

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.