lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev <INPUT TYPE="file" ...


From: Rob Partington
Subject: Re: lynx-dev <INPUT TYPE="file" ...
Date: Tue, 01 Dec 1998 10:50:43 +0000

In message <address@hidden>, 
           Philip Webb writes:
> 981130 Tom Hall wrote: 
>
> > Does anyone know when TYPE="file" is planned to be supported in lynx ?
>  
> as with everything, when someone gets around to offering a patch:
> would you like to have a go at it?  can anyone else offer advice?

*sigh*  Does anyone read my mails to the list?  I've already *done* this.

I've already explained the problems with it, as well.  Look in
the archives for mails with a subject line containing ENCTYPE,
and you'll find my explanation of why it, currently, doesn't work
as expected.

Failing the ability to search the archive (which seems to be the
case, otherwise my previous mails about the subject would have
been read and this wouldn't have arisen -again-), here it is
again.

I've already implemented form-based file-upload in Lynx.  There's
a patch at the URL below.  I don't know if the patch works, I'm
never very successful at generating them.  If people want access
to the code I have then I can arrange that.

The problem is that no-one works to the standard.  The RFC states
that the data should be encoded as 7-bit, with an appropriate
Content-Transfer-Encoding header.  My patch base64's anything
that goes through it and adds the CTE header.  However, almost
nothing I've tried it with understood the CTE header.  CGI.pm, as
of a couple of months ago, didn't have code for dealing with it.
Most of the applications that allow you to upload files didn't
understand it.  So Lynx needs to send binary data, or wait for
the rest of the world to follow the standards.  Getting Lynx to
send binary data is *non-trivial* and involves rewriting almost
all of the HTTP protocol code to allow binary strings.  All
request generation is done using strcpy/strcat which don't work
with binary data.  All of these would need to be converted to use
counted-length-strings to be 8bit clean.  I didn't fancy the job
two months ago, nor do I particularly fancy it at the moment.
-- 
    rob partington / address@hidden / programmer
do while $lang=~/^perl|python|c|tcl|awk|(sg|ht|x)ml$/i;
  sometime lynx hacker: http://lynx.browser.org/rp/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]