rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: SenHFS on January 16, 2014, 04:11:47 PM

Title: Automatic download
Post by: SenHFS on January 16, 2014, 04:11:47 PM
Hey guys,

What I need is:
Enter a http link and get an automatic download of a file (maybe 2 at the same time) without clicking anything.

Is that possible with HFS?

Thanks
Title: Re: Automatic download
Post by: rejetto on January 26, 2014, 04:19:06 PM
yes, it is
Title: Re: Automatic download
Post by: bmartino1 on January 31, 2014, 04:43:09 PM
yes, a code simalr to this

the lineplaced in the header is what you need:
<meta http-equiv="refresh" content="0"; URL="https://bmartino1.dyndns.org">

break down
meta data - http-equiv="refresh"  is a comand to hit the refresh button on the webpage, but to a specfic page you put...
content="0" is how many second will pass before the page will refresh, 0 means as soon as possible...
URL, is the path to the download file you are wanting to send...

html code(form http to transfer to https...(LOLZ):
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<meta http-equiv="refresh" content="0"; URL="https://bmartino1.dyndns.org">
<title></title>
</head>
<body>
<p>redirecting you to <a href="https://bmartino1.dyndns.org"> https://bmartino1.dyndns.org &lt;.a&gt;</a></p>
</body>
</html>

LOLZ... hopes this helps
:)