View Full Version : GetPage from github?
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!)
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.
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:
http://i.imgur.com/CRKCT.png
Or i've to get the 'openSSL libraries' like u said? Just download from http://www.openssl.org/?
Thats strange? Returns nothing for me:
http://i.imgur.com/CRKCT.png
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 (http://www.filedropper.com/openssl) file containing the libraries and copy them to your Simba folder instead of downloading from 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 (http://www.filedropper.com/openssl) 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
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.