FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184016&th=123313#msg_184016
I mean not manually.
I can download the file in these kind address, manually. There is a button in the web page, and the web url change to "http://***.com/down.php" once the button is clicked.
I have no idea about download it through programming.(Thus they may be downloaded automatically.)
Is that possible ?
Any comment is appreciated. Thanks in advance.]]>zhangfj2013-12-02T17:21:12-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184017&th=123313#msg_184017
zhangfj@gmail.com wrote:
> Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
> I mean not manually.
> I can download the file in these kind address, manually. There is a button in the web page, and the web url change to "http://***.com/down.php" once the button is clicked.
>
> I have no idea about download it through programming.(Thus they may be downloaded automatically.)
> Is that possible ?
>
> Any comment is appreciated. Thanks in advance.
>
You should be able to use cURL to download the file. Not having exact
detail on what's happening, but I would suggest you use Firefox's Live
HTTP Headers to see what's being sent to the server. That might give
you some ideas.
There's also a possibility the site uses javascript to download the
file; this would be harder but you should still be able to determine
what's being sent to the server to download the file.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attglobal.net
==================]]>Jerry Stuckle2013-12-02T17:25:15-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184018&th=123313#msg_184018
> Can I download file with address like this
> "http://***.com/file.php/ABC.html" automatically ?
> I mean not manually.
> I can download the file in these kind address, manually. There is a
> button in the web page, and the web url change to
> "http://***.com/down.php" once the button is clicked.
>
> I have no idea about download it through programming.(Thus they may be
> downloaded automatically.)
> Is that possible ?
>
> Any comment is appreciated. Thanks in advance.
As you asked the question in a php newsgroup, I assume you wish to use php
code to retrieve The term you need to google may be "php curl".
However, as a simpler interface, if the php configuration allows it, you
can also use a url as a filename to open a file. What you then do with
the data you receive by reading from the file handle is up to you.
This of course assumes that you know the url that you want to retrieve.
If you're not using php to do the automatic download, you're asking in
the wrong place. How "automatic" do you wish it to be? If you want it to
happen every minute / hour / day / week etc you may wish to look up the
scheduling mechanism on your system (usually cron on a linux/unix etc
box, but I have no idea what you're actually using).
--
Denis McMahon, denismfmcmahon@gmail.com]]>Denis McMahon2013-12-02T17:31:50-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184019&th=123313#msg_184019
zhangfj@gmail.com wrote:
> Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
> I mean not manually.
> I can download the file in these kind address, manually. There is a button in the web page, and the web url change to "http://***.com/down.php" once the button is clicked.
>
> I have no idea about download it through programming.(Thus they may be downloaded automatically.)
> Is that possible ?
>
> Any comment is appreciated. Thanks in advance.
Not really.
As the convention of the URL does not allow wild cards.
i.e. the ***.
There are several programs available that download numerous pages from
within a single domain. But not the way you want.
However, it could possibly be done using a programmiing language called
liberty basic.
www.libertybasic.com
They have a program where pages can be downloaded automatically.
With a little extra coding, you could have it search through each and every
domain until it finds a matching page and then download it.
Then, if you get caught downloading copyrighted material you can tell us
about your experiences from prison.]]>Mr Oldies2013-12-02T18:19:51-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184026&th=123313#msg_184026
> On 12/2/2013 12:21 PM, zhangfj@gmail.com wrote:
>
>> Can I download file with address like this "http://***.com/file.php/ABC..html" automatically ?
>
>> I mean not manually.
>
>> I can download the file in these kind address, manually. There is a button in the web page, and the web url change to "http://***.com/down.php" once the button is clicked.
>
>>
>
>> I have no idea about download it through programming.(Thus they may be downloaded automatically.)
>
>> Is that possible ?
>
>>
>
>> Any comment is appreciated. Thanks in advance.
>
>>
>
>
>
> You should be able to use cURL to download the file. Not having exact
>
> detail on what's happening, but I would suggest you use Firefox's Live
>
> HTTP Headers to see what's being sent to the server. That might give
>
> you some ideas.
>
>
>
> There's also a possibility the site uses javascript to download the
>
> file; this would be harder but you should still be able to determine
>
> what's being sent to the server to download the file.
>
>
>
> --
>
> ==================
>
> Remove the "x" from my email address
>
> Jerry Stuckle
>
> JDS Computer Training Corp.
>
> jstucklex@attglobal.net
>
> ==================
Thank you. Your reply is the nearest to my objective.
And thanks to other replies.]]>zhangfj2013-12-03T02:23:27-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184027&th=123313#msg_184027
> On Mon, 2 Dec 2013 09:21:12 -0800 (PST), zhangfj@gmail.com wrote:
>
>
>
>> Can I download file with address like this "http://***.com/file.php/ABC..html" automatically ?
>
>> I mean not manually.
>
>> I can download the file in these kind address, manually. There is a button in the web page, and the web url change to "http://***.com/down.php" once the button is clicked.
>
>>
>
>> I have no idea about download it through programming.(Thus they may be downloaded automatically.)
>
>> Is that possible ?
>
>>
>
>> Any comment is appreciated. Thanks in advance.
>
>
>
> Not really.
>
> As the convention of the URL does not allow wild cards.
>
> i.e. the ***.
>
> There are several programs available that download numerous pages from
>
> within a single domain. But not the way you want.
>
>
>
> However, it could possibly be done using a programmiing language called
>
> liberty basic.
>
> www.libertybasic.com
>
> They have a program where pages can be downloaded automatically.
>
> With a little extra coding, you could have it search through each and every
>
> domain until it finds a matching page and then download it.
>
>
>
> Then, if you get caught downloading copyrighted material you can tell us
>
> about your experiences from prison.
LOL.
My question maybe mislead you.
I just wanna download materials from one site. And the changing part should be "ABC" in the url, in order to download automatically.
Thanks for your reply.]]>zhangfj2013-12-03T02:43:15-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184028&th=123313#msg_184028
Briefly, my problem is that I can't download the file by programming.
I want to change "ABC" in the URL to download files automatically from one site.]]>zhangfj2013-12-03T03:10:22-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184029&th=123313#msg_184029
noreply@example.com>
wrote:
> Not really.
> As the convention of the URL does not allow wild cards.
> i.e. the ***.
You dumbass, the OP was simply munging the domain.
Since you obviously don't understand the question, don't attempt to
answer it.
--
To reply via e-mail, remove The Obvious and .invalid from my e-mail address.]]>Evan Platt2013-12-03T06:15:09-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184030&th=123313#msg_184030
zhangfj@gmail.com wrote:
> Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
> I mean not manually.
> I can download the file in these kind address, manually. There is a button in the web page, and the web url change to "http://***.com/down.php" once the button is clicked.
>
> I have no idea about download it through programming.(Thus they may be downloaded automatically.)
> Is that possible ?
>
> Any comment is appreciated. Thanks in advance.
Not really a PHP question IMHO, read the man page for wget http://unixhelp.ed.ac.uk/CGI/man-cgi?wget
It's a tool with which you can download a whole site, parts or what ever
you like.
--
//Aho]]>J.O. Aho2013-12-03T06:57:10-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184031&th=123313#msg_184031
zhangfj@gmail.com wrote:
> Thank you for your informative reply.
>
> Briefly, my problem is that I can't download the file by programming.
> I want to change "ABC" in the URL to download files automatically from one site.
>
You need to have a link top a PHP program that reads the file, then sets
up headers top tell the browser that it is not (to be understood to be)
an HTML: page, but a file download, and then sends the file.
so if your program was say -getfile.php and the file was 'rubbish.html'
and that's it. No closing ?> should be used so there is no danger of
setting characters NOT in the file itself - the script exits still in
'php mode'
in your main page use
<a href="getfile.php">Download the file here</a>
Setting the content-disposition to 'attachment' strongly suggests to the
browser that the contents should not be displayed as HTML but should be
downloaded instead. However this behaviour is never 100% guaranteed.
instead of a local filename you can use a URL as well, if you are trying
to 'scrape' another website.
curl() will give you more control if you need it than
file_get_contents() for that.
(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.]]>The Natural Philosoph2013-12-03T10:09:34-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184034&th=123313#msg_184034
> On 03/12/13 03:10, zhangfj@gmail.com wrote:
>> Thank you for your informative reply.
>>
>> Briefly, my problem is that I can't download the file by programming.
>> I want to change "ABC" in the URL to download files automatically from
>> one site.
>>
>
> You need to have a link top a PHP program that reads the file, then sets
> up headers top tell the browser that it is not (to be understood to be)
> an HTML: page, but a file download, and then sends the file.
>
> so if your program was say -getfile.php and the file was 'rubbish.html'
>
> <?php
> header("Content-Disposition: attachment; filename=\"rubbish.html\"");
> header("Content-Type: text/plain");
> $data=file_get_contents("rubbish.html");
> echo($data);
>
> and that's it. No closing ?> should be used so there is no danger of
> setting characters NOT in the file itself - the script exits still in
> 'php mode'
>
> in your main page use
>
> <a href="getfile.php">Download the file here</a>
>
> Setting the content-disposition to 'attachment' strongly suggests to the
> browser that the contents should not be displayed as HTML but should be
> downloaded instead. However this behaviour is never 100% guaranteed.
>
> instead of a local filename you can use a URL as well, if you are trying
> to 'scrape' another website.
>
> curl() will give you more control if you need it than
> file_get_contents() for that.
>
> http://us1.php.net/manual/en/curl.examples-basic.php
>
>
Completely off the mark, as usual.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attglobal.net
==================]]>Jerry Stuckle2013-12-03T13:15:02-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184035&th=123313#msg_184035
zhangfj@gmail.com wrote:
> 在 2013年12月3日星期二UTC+8上午2时19分51秒,richard写道:
>> On Mon, 2 Dec 2013 09:21:12 -0800 (PST), zhangfj@gmail.com wrote:
>>
>>
>>
>>> Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
>>
>>> I mean not manually.
>>
>>> I can download the file in these kind address, manually. There is a button in the web page, and the web url change to "http://***.com/down.php" once the button is clicked.
>>
>>>
>>
>>> I have no idea about download it through programming.(Thus they may be downloaded automatically.)
>>
>>> Is that possible ?
>>
>>>
>>
>>> Any comment is appreciated. Thanks in advance.
>>
>>
>>
>> Not really.
>>
>> As the convention of the URL does not allow wild cards.
>>
>> i.e. the ***.
>>
>> There are several programs available that download numerous pages from
>>
>> within a single domain. But not the way you want.
>>
>>
>>
>> However, it could possibly be done using a programmiing language called
>>
>> liberty basic.
>>
>> www.libertybasic.com
>>
>> They have a program where pages can be downloaded automatically.
>>
>> With a little extra coding, you could have it search through each and every
>>
>> domain until it finds a matching page and then download it.
>>
>>
>>
>> Then, if you get caught downloading copyrighted material you can tell us
>>
>> about your experiences from prison.
>
> LOL.
>
> My question maybe mislead you.
> I just wanna download materials from one site. And the changing part should be "ABC" in the url, in order to download automatically.
> Thanks for your reply.
There are programs out there that will do just that.
Some will even download the entire site!]]>Mr Oldies2013-12-03T13:41:25-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184036&th=123313#msg_184036
> On 02/12/13 18:21, zhangfj@gmail.com wrote:
>> Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
>> I mean not manually.
>> I can download the file in these kind address, manually. There is a button in the web page, and the web url change to "http://***.com/down.php" once the button is clicked.
>>
>> I have no idea about download it through programming.(Thus they may be downloaded automatically.)
>> Is that possible ?
>>
>> Any comment is appreciated. Thanks in advance.
>
> Not really a PHP question IMHO, read the man page for wget
> http://unixhelp.ed.ac.uk/CGI/man-cgi?wget
> It's a tool with which you can download a whole site, parts or what ever
> you like.
Liberty Basic's urlmon.bas program can do that in a hearbeat.
It pulls the entire page(s) as a single string and saves the file.]]>Mr Oldies2013-12-03T13:50:04-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184064&th=123313#msg_184064
> On 03/12/13 03:10, zhangfj@gmail.com wrote:
>
>> Thank you for your informative reply.
>
>>
>
>> Briefly, my problem is that I can't download the file by programming.
>
>> I want to change "ABC" in the URL to download files automatically from one site.
>
>>
>
>
>
> You need to have a link top a PHP program that reads the file, then sets
>
> up headers top tell the browser that it is not (to be understood to be)
>
> an HTML: page, but a file download, and then sends the file.
>
>
>
> so if your program was say -getfile.php and the file was 'rubbish.html'
>
>
>
> <?php
>
> header("Content-Disposition: attachment; filename=\"rubbish.html\"");
>
> header("Content-Type: text/plain");
>
> $data=file_get_contents("rubbish.html");
>
> echo($data);
>
>
>
> and that's it. No closing ?> should be used so there is no danger of
>
> setting characters NOT in the file itself - the script exits still in
>
> 'php mode'
>
>
>
> in your main page use
>
>
>
> <a href="getfile.php">Download the file here</a>
>
>
>
> Setting the content-disposition to 'attachment' strongly suggests to the
>
> browser that the contents should not be displayed as HTML but should be
>
> downloaded instead. However this behaviour is never 100% guaranteed.
>
>
>
> instead of a local filename you can use a URL as well, if you are trying
>
> to 'scrape' another website.
>
>
>
> curl() will give you more control if you need it than
>
> file_get_contents() for that.
>
>
>
> http://us1.php.net/manual/en/curl.examples-basic.php
>
>
>
>
>
> --
>
> Ineptocracy
>
>
>
> (in-ep-toc’-ra-cy) – a system of government where the least capable to
>
> lead are elected by the least capable of producing, and where the
>
> members of society least likely to sustain themselves or succeed, are
>
> rewarded with goods and services paid for by the confiscated wealth of a
>
> diminishing number of producers.
Thanks for your information in detail, I can't understand them now. I will pay attention to that website to follow your idea.]]>zhangfj2013-12-04T02:26:02-00:00Re: Can I download file with address like this "http://***.com/file.php/ABC.html" automatically ?
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=184067&th=123313#msg_184067
zhangfj@gmail.com wrote:
> 在 2013年12月3日星期二UTC+8下午6时09分34秒,The Natural Philosopher写道:
>> On 03/12/13 03:10, zhangfj@gmail.com wrote:
>>
>>> Thank you for your informative reply.
>>
>>>
>>
>>> Briefly, my problem is that I can't download the file by programming.
>>
>>> I want to change "ABC" in the URL to download files automatically from one site.
>>
>>>
>>
>>
>>
>> You need to have a link top a PHP program that reads the file, then sets
>>
>> up headers top tell the browser that it is not (to be understood to be)
>>
>> an HTML: page, but a file download, and then sends the file.
>>
>>
>>
>> so if your program was say -getfile.php and the file was 'rubbish.html'
>>
>>
>>
>> <?php
>>
>> header("Content-Disposition: attachment; filename=\"rubbish.html\"");
>>
>> header("Content-Type: text/plain");
>>
>> $data=file_get_contents("rubbish.html");
>>
>> echo($data);
>>
>>
>>
>> and that's it. No closing ?> should be used so there is no danger of
>>
>> setting characters NOT in the file itself - the script exits still in
>>
>> 'php mode'
>>
>>
>>
>> in your main page use
>>
>>
>>
>> <a href="getfile.php">Download the file here</a>
>>
>>
>>
>> Setting the content-disposition to 'attachment' strongly suggests to the
>>
>> browser that the contents should not be displayed as HTML but should be
>>
>> downloaded instead. However this behaviour is never 100% guaranteed.
>>
>>
>>
>> instead of a local filename you can use a URL as well, if you are trying
>>
>> to 'scrape' another website.
>>
>>
>>
>> curl() will give you more control if you need it than
>>
>> file_get_contents() for that.
>>
>>
>>
>> http://us1.php.net/manual/en/curl.examples-basic.php
>>
>>
>>
>>
>>
>> --
>>
>> Ineptocracy
>>
>>
>>
>> (in-ep-toc’-ra-cy) – a system of government where the least capable to
>>
>> lead are elected by the least capable of producing, and where the
>>
>> members of society least likely to sustain themselves or succeed, are
>>
>> rewarded with goods and services paid for by the confiscated wealth of a
>>
>> diminishing number of producers.
>
> Thanks for your information in detail, I can't understand them now. I will pay attention to that website to follow your idea.
>
Don't waste your time. TNP didn't even understand your question, and
his response is way off target. But that's pretty normal for him.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. jstucklex@attglobal.net
==================]]>Jerry Stuckle2013-12-04T03:41:07-00:00