468,550 Members | 1,693 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,550 developers. It's quick & easy.

How to Fetch a File from Remote Server to Local Server in ASP Classic?

nicebasic
Hello everyone.

I wish to do Remote File Fetching in ASP Classic. Below is a very easy, but effective PHP Script which shows what I mean:

http://www.phpsnaps.com/snaps/view/f...emote-servers/

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. if ($_GET[xfer]) {
  3. if ($_POST[from] == "") {
  4. print "You forgot to enter a url.";
  5. } else {
  6. copy("$_POST[from]", "$_POST[to]");
  7. $size = round((filesize($_POST[to])/1000000), 3);
  8. print "transfer complete.<br>
  9. <a><a href=\"$_POST[from]\">$_POST[from]</a><br>
  10. <a><a href=\"$_POST[to]\">$_POST[to]</a> : $size MB";
  11. }
  12. } else {
  13. print "<form action=\"$PHP_SELF?xfer=true\" method=post>
  14. from(http://): <input name=from><br>
  15. to(filename): <input name=to><br>
  16. <input type=submit value=\"transload\">";
  17. }
  18. ?>

I don't know how to copy a file from a Remote Server to my Local Host.

Does anybody know how to accomplish this in ASP Classic?
Mar 5 '12 #1
0 1445

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by mbailey | last post: by
13 posts views Thread by Francesco Moi | last post: by
4 posts views Thread by Nathaniel Sherman | last post: by
2 posts views Thread by LiveCycle | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.