View Full Version : HTTP statement executed in HTML
FrancoisC
11-18-2004, 05:42 AM
hello
I do know how to trigger a Download process from HTML via a link like <a href="http://tructruc.free.fr/xxxx.DOC" >Charger mon CV</a>.
I am looking for accomplishing the same action (of Downloading, of executing astraight HTTP statement) from PHP WITHOUT any person action, without clicking on something.
Would anyone like to explain to me how to do this?
Thank you in advance.
F
dabbler
11-18-2004, 07:13 AM
First of all, I would ask why you want to attempt to download something to someone's machine without their knowledge? acquiescence? consent?
Terminator1138
11-18-2004, 10:14 AM
I totally agree, NO ONE wants to download something without knowledge of what it is....What would be the benefit of this?????
You can have an active x control, however, this can be disabled also the person would still have to accept it. IT looks like there is also an uppercase problem in your code.
FrancoisC
11-22-2004, 05:48 AM
Thank you for your answers first.
No, I am looking for the reverse: allowing a visitor to download a file from my site just by loading one of the pages, ie without a human action (like clicking on a link).
Terminator1138
11-22-2004, 07:57 AM
So you are still wanting to have someone enter a page and automatically download a file. OR are you just wanting them to click on a link and download some file?
azlatin2000
11-22-2004, 11:01 AM
Part 1: (if your question has nothing to do with spyware scroll down to part 2)
If you are reading this then you want some of the internet explorer vulnerabilities used to install spyware/adware to peoples computers. Despite service pack 2, there are still tons of them that are unpatched and since i hate scumbags who install spyware i will leave it at this: go learn something and discover your own vulnerabilities.
If you do find a vulnerability and install spyware, the forums have your ip logged, and i know you weren't smart enough to use a proxy. Despite what people might say, your ip can be traced back to you.
Part 2:
If you are not one of those spyware installing scumbags, then ignore my comments above and your answer is:
<script>
location.href="http://tructruc.free.fr/xxxx.DOC";
</script>
FrancoisC
11-24-2004, 03:46 AM
Let me answer your questions by describing what my precise goal is:
- I had a link to allow someone coming to my professional Web site to download to his/her PC my CV (right?)
- I want to transform this a little bit by adding a count function to it, just to know how many/when someone will download
Thus I needto put into a page, triggered by the same link, two things: capturing some data, excute the download.
This is why I need to find a way to execute this HTTP statement.
Thanks to you, I got the answer that I am going to put to test pretty soon.
F
Terminator1138
11-24-2004, 05:25 AM
Does your server allow stats? if so you can count how many times someone is hitting that file. Also using a link is better IMO than doing something automatic. It sounds like you want them to voluntarily download via link but have that link hidden when they enter a page. So what you are telling us is that there will be a link to a special page that they have to clik to download and they will know this. Upon page open without content, the statement would execute and install what you want them to look at and keep. Did I get that much right?
As far as a count function, I think PHP can do that.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.