Register
It is currently Sat Jul 30, 2016 5:13 am

https help


All times are UTC - 6 hours


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 PostPosted: Mon May 30, 2016 4:40 pm   

Joined: Mon May 30, 2016 4:24 pm
Posts: 3
i'm losing my mind with this as i can't get it work on https any help would be amazing.

Code:
#!/bin/bash

cd /system/app/ss/

rm version
rm new

wget https://www.googledrive.com/host/0B-pI-H2m5d63ZmhkU0dFV3RLVDg/version

mv version new

source current
CUR=$VERSION

source new
NEW=$VERSION

if   [ $CUR -eq $NEW ]; then
   ./noupdate.sh

elif [ $NEW -gt $CUR ]; then
   ./update.sh

else
   ./error.sh
fi


Top
 Profile  
 PostPosted: Mon May 30, 2016 4:48 pm   

Joined: Mon Oct 20, 2014 9:53 am
Posts: 452
Try with options
--secure-protocol=auto
--no-check-certificate

man wget does know all options


Top
 Profile  
 PostPosted: Mon May 30, 2016 4:55 pm   

Joined: Mon May 30, 2016 4:24 pm
Posts: 3
Code:
--secure-protocol=auto
returns
Code:
wget: unrecognized option '----secure-protocol=auto'


and

Code:
--no-check-certificate
returns
Code:
wget: can't execute 'ssl_helper': no such file or directory
wget: error getting response: connection reset by peer


i cant see what i'm doing wrong


just to check this is correct isn't it

Code:
wget --no-check-certificate https://www.googledrive.com/host/0B-pI-H2m5d63ZmhkU0dFV3RLVDg/version


Top
 Profile  
 PostPosted: Mon May 30, 2016 8:04 pm   

Joined: Mon Oct 20, 2014 9:53 am
Posts: 452
You are trying to access a google drive.
Of course you have to authenticate with this service.
I do not use google.

You should know what kind of information is needed to access your data and how to authenticate.

Some options dealing with these issues:

--user=user
--password=password
--ask-password
--http-user=user
--http-password=password

And i think you have to deal with cookies as well.
Some more options.

To put it short: You have to rebuild a normal session of this service with wget options.

Read entire man wget

It might be helpful to watch a session like that with e.g. Firebug installed in Firefox


Top
 Profile  
 PostPosted: Tue May 31, 2016 1:42 am   

Joined: Mon May 30, 2016 4:24 pm
Posts: 3
the bit i don't get is that this script works with openelec but it won't work on android. starting to do my head in now.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP