[Top][All Lists]

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

Re: lynx-dev form fill with Lynx - oops

From: David Woolley
Subject: Re: lynx-dev form fill with Lynx - oops
Date: Tue, 18 Jan 2000 08:34:17 +0000 (GMT)

>   This message is in MIME format.  The first part should be readable text,
>   while the remaining parts are likely unreadable without MIME-aware tools.
>   Send mail to address@hidden for more info.
> --1921228555-1865718524-948126640=:1083
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> How can I correctly tell Lynx (on the command line) to fill in the form in
> the attached document (fastasite.html at,
> post it, and dump the result of the interaction with the remote host to a
> local file?

You can't do it simply, as it uses multipart/form-data and you cannot
send that content type header value with the post data option.  Chances
are that the server doesn't check and it is also possible that it does
check, and switches to the standard format.

multipart/form-data is basically MIME format, but there are enough 
subtleties that you need to get the spec.

You may be better using something like expect to script the client,
ending up with a print to file command.

Also note the Javascript.  Although I couldn't find the definitions of
the functions and don't think they are built-ins on Netscape, there are
scripts whose names imply that they attempt to take browser specific
actions and to try and fake a connection oriented environment by trying
to tell the server when you finally leave the page.  You may need to
understand the purpose of these.

If this is a read only query, I would suggest that your best option is
to ask them to convert it into a standard GET mode form.  One reason
for them refusing might be that automatic fetching conflicts with their
business model, e.g. by preventing you from seeing sponsors adverts.
(Even universities are interested in any source of revenue they can find
in the UK as the government is increasingly withdrawing funding.)

> PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlw
> ZSIgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWlzby04ODU5LTEiPg0K

Please do not send BASE64 attachments of text files.

reply via email to

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