lynx-dev
[Top][All Lists]
Advanced

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

RE: [Lynx-dev] Lynx SSL help


From: Stef Caunter
Subject: RE: [Lynx-dev] Lynx SSL help
Date: Tue, 6 Sep 2005 22:33:56 -0400 (EDT)

This form is for file upload. I do not believe this can be automated with lynx.
You cannot POST using -post_data to a file upload form AFAIK. The server is expecting a filename, and then a file it can write out, which isn't implemented (yet).

The file could be sent in -post_data if -post_data could be amended to read in a file to send: -post_file_with_data, maybe? RFC1867 shows that the post elements get stacked one after the other separated by Content-type: and content-disposition: headers, boundaries, the data, and CRLFs.

Stef
http://caunter.ca/crypto.html

On Tue, 6 Sep 2005, Runu Ali wrote:

Hi

I tried what you said I cannot get it to work, this is what I have been
doing.

I have a file called b which contains the following

MerchantID=bar&Password=foo&FileType=CSVCC&File=FDGMETROIN
1898110805

So I did
Cat b | lynx -post_date
https://clearance.commsecure.com.au/cgi-bin/FileUploader -

I get the following :

                        CommSecure FileUpload Declined

  This upload was declined because: Problem header
  "['FDGMETROIN1898110805']" had wrong number of fields. parsing file

  Please contact our helpdesk on 02 9497 4400 for help if it is unclear
  what is going wrong.

  [1]Please try again?

References

  1. https://clearance.commsecure.com.au/cgi-bin/FileUploader


Can you help ?  If you connect to it and have a look at the form, is there
anything I have missed ??

Thanks

Runu



-----Original Message-----
From: Stef Caunter [mailto:address@hidden
Sent: Wednesday, 7 September 2005 12:02 AM
To: Runu Ali
Subject: RE: [Lynx-dev] Lynx SSL help

try

cat foo.txt | lynx -post_data https://your.domain.tld/ -

where foo.txt contains one line with all the pairs to POST

On Tue, 6 Sep 2005, Runu Ali wrote:

I am trying to send contents of a file this is the syntax I am using

echo
'MerchantID=??&Password=??&FileType=CSVCC&File=FDGMETRO.IN.1898.110805'
| lynx -post_data https://??????

It does not work, I need to be able to send the contents of the file


#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by MailMarshal
For more information please visit www.marshalsoftware.com
#####################################################################################






reply via email to

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