Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

download with lynx

Nope, "d"'s default is text.  If it don't have an extension then
it goes to text.  I want to know how to get it do download
binary every time for "d".
0
gameman
Asked:
gameman
  • 3
  • 3
1 Solution
 
asmcmrrCommented:

  If you're using LYNX, then I assume you're just following the link to the file you specify?  This might cause a problem.  If you want a "rock solid" way of downloading without Lynx trying to display the result and corrupt it, try this:

Edit a HTML file with a link to the file you want to download:

<HTML>
<BODY>
<A HREF="http://www.wherever.com/file.extension/">Download</A>
</BODY>
</HTML>

  Now open this page with Lynx and when you have the link highlighted DON'T click on it to follow the link.  Instead, push "d" and it will download it and then give you your saving options - it should not try to display the file, and the file should have been received properly.

  This won't be necessary in most cases, because most people name their files with appropriate extentions, and Lynx doesn't get confused.

0
 
gamemanAuthor Commented:
Edited text of question
0
 
asmcmrrCommented:

  Always?  I don't think so.  This is certainly not typical of browser behaviour (binary transfers are not its main intended purpose).  Having a browser default to making transfers that it won't then display sounds rather odd when you think of its intended purpose, and the designers have not included this as an option.  They programmed the appropriate functionality into Lynx, assigning responsability to web page owners to properly name their files. (proper extentions)
  If you want to make binary download SIMPLER, then writing a simple script which could accept an URL name and then create a download HTML page with a link which is "d"ownloadable would be easy, and somewhat more convenient.
  Lynx does not include an option to download binary and then display the results, so if you were able to set it up to do binary transfers as default, it would not display HTML pages - just download them.  This kind of defeats the purpose of a "browser", even though it lets you download errantly named files in binary mode.
  Errantly named files are not too common, so it shouldn't be all that much of an inconvenience when you encounter them.  The best thing to do, I would think, is to try to make the process a little less painful via scripts, etc...

0
Meet the Family that is Made for Collaboration

The TeamConnect Family product group as part of the Sennheiser for Business Portfolio comprising high-quality, technically well-conceived meeting solutions for business communication – designed for any meeting room and any meeting situation.

 
gamemanAuthor Commented:
Edited text of question
0
 
asmcmrrCommented:
I know you do not want HTML pages to download that way, that's just how it might have to be if binary transfers were the default.  "D"ownloading should always be binary, but it isn't in your setup?  I haven't encountered this before... even if I download a TEXT file it does it binarily with the "d"ownload function.
0
 
gamemanAuthor Commented:
Edited text of question
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now