SRL Archive - Help

GetPage from github?


riwu

2012-08-25 21:49:53

I'm trying out using github as my autoupdater (been using googlecode previously), but having difficulty retrieving the raw file.
Tried:
GetPage(view-source:https://raw.github.com/riwu/Pascal-Scripts/master/vc.txt)
GetPage(https://raw.github.com/riwu/Pascal-Scripts/master/vc.txt)

Both returns nil.

On googlecode, GetPage('view-source:https://riwu-simba-scripts.googlecode.com/git/VC.txt') works perfectly.

EDIT: seems like i've to upload it and retrieve from http://cloud.github.com/downloads/riwu/Pascal-Scripts/vc.txt. Is there no way to directly extract from the source? (i'm presuming it's because of the 'https' security, but it works on googlecode!)

Sex

2012-08-25 21:58:31

You'll need the openSSL libraries I believe.

Edit:

Writeln(GetPage('https://raw.github.com/riwu/Pascal-Scripts/master/vc.txt'));
->
Compiled successfully in 281 ms.
Cont [True] URL [https://raw.github.com/riwu/pascal-scripts/master/vc.txt]
riwuDomSunfreet=3.1;
riwuDomDagannoth=12.1;
riwuBirdNest=4.1;
riwuGielinorGames=1.1;
Successfully executed.

riwu

2012-08-25 22:11:45

From: Sex
You'll need the openSSL libraries I believe.

Edit:

Writeln(GetPage('https://raw.github.com/riwu/Pascal-Scripts/master/vc.txt'));
->
Compiled successfully in 281 ms.
Cont [True] URL [https://raw.github.com/riwu/pascal-scripts/master/vc.txt]
riwuDomSunfreet=3.1;
riwuDomDagannoth=12.1;
riwuBirdNest=4.1;
riwuGielinorGames=1.1;
Successfully executed.

Thats strange? Returns nothing for me:

Or i've to get the 'openSSL libraries' like u said? Just download from http://www.openssl.org/?

Sex

2012-08-25 22:15:13

From: riwu
Thats strange? Returns nothing for me:

Or i've to get the 'openSSL libraries' like u said? Just download from http://www.openssl.org/?


Yeah, you're gonna need to have the openSSL libraries in your Simba folder, the folder your script is saved in, or in any folder in your path.

If you download the binaries from openssl.org you'll need to copy two files (libeay32.dll, libssl32.dll) over to the above location (I'd just put them in your Simba folder).

You can just download a zip file containing the libraries and copy them to your Simba folder instead of downloading from openssl.org.

riwu

2012-08-25 22:50:48

From: Sex
Yeah, you're gonna need to have the openSSL libraries in your Simba folder, the folder your script is saved in, or in any folder in your path.

If you download the binaries from openssl.org you'll need to copy two files (libeay32.dll, libssl32.dll) over to the above location (I'd just put them in your Simba folder).

You can just download a zip file containing the libraries and copy them to your Simba folder instead of downloading from openssl.org.

Unfortunately it's a public script so it's going to be troublesome to get users to download them or auto download them via the script. Guess i'll just stick to the 'Downloads' part of github, seems to work perfectly.
Thanks for help anyway, rep++!

p.s. script released: http://villavu.com/forum/showthread.php?t=89096