SRL Archive - OSR Help

Downloading with OpenWebpage


Rich

2011-02-10 12:28:18

  Link:= GetPage('http://rbeggar.webs.com/Download.txt');
OpenWebpage(Link);
The text document which GetPage grabs is the link to a script download (http://villavu.com/forum/attachment.php?attachmentid=10590&d=1297358023).

If you put that link into your URL it works fine, but calling it in OpenWebpage as Link gives this error:
Error: Exception: Failed to execute  "http://villavu.com/forum/attachment.php?attachmentid=10590&d=1297358023" : 87 at line 109
Any ideas why?

weequ

2011-02-10 12:33:17

So you have the link in Download.txt right?

I have no idea then :S

Tried openwebpage without getpage yet?


Edit: I tried it and it worked fine in scar. Trying with simba now.

Frement

2011-02-10 12:36:37

program new;
begin
OpenWebpage(GetPage('http://rbeggar.webs.com/Download.txt'));
end.

Worked for me.

weequ

2011-02-10 12:40:19

For me it works in scar but not in simba. I think there is bug in simba or something.
(OpenWebPage won't open any web pages for me)

Frement

2011-02-10 13:03:37

I tested in Simba, but not in SCAR.

Rich

2011-02-10 13:17:43

From: Frement
program new;
begin
OpenWebpage(GetPage('http://rbeggar.webs.com/Download.txt'));
end.

Worked for me.
Neither that or what I have works. I've got the most up to date Simba, so I don't have a clue what's causing this…:confused:

Frement

2011-02-10 14:56:31

I still have 750, so maybe a bug in the latest?

EDIT: Fix, I have 810, I thought I had 750 :D

i luffs yeww

2011-02-10 16:15:08

It's a problem with vB, not GetPage/anything, afaik. You can't automatically download scripts from it. :/

Rich

2011-02-11 03:04:15

It worked fine in SCAR?

i luffs yeww

2011-02-11 03:18:14

.-. Well then I have no idea..

Sex

2011-02-11 03:18:32

Downloads for me, I got Simba 810.

Kave

2011-02-11 05:21:37

I think its cause you have to be logged in to download attachments?

Nava2

2011-02-11 08:15:40

Why not just do:

(pseudo code, btw)

scripttext = getPage(CURRENT SCRIPT);
writeFile(scriptText);
DeleteFile(OLDSCRIPT);
_OR_
RenameToOld(OLDSCRIPT);

i luffs yeww

2011-02-11 12:53:38

I agree with N2, if he's talking about just putting the .txt of the file on rbeggar.webs.com/script.txt or something and downloading that..