Old 1st March 2017, 19:08   #1
Aleksey
Junior Member
 
Join Date: Mar 2017
Posts: 3
Exclamation Wget Nsis

Hello, I need your help with downloading files.

I need to save cookies and then using it download my file. Like this by wget:

--save cookies
wget --no-check-certificate --save-cookies /tmp/cookies.txt --post-data 'email=my-email&password=mypassword' https://mysite/auth/signIn

--download usins saved cookes
wget --no-check-certificate --content-disposition --load-cookies /tmp/cookies.txt --post-data 'type=win64' https://mysite/download -O /tmp/file_win64.zip

Inetc plugin can't do that. Can you give me any tips?
I need to download it by using native windows tools.
Aleksey is offline   Reply With Quote
Old 1st March 2017, 22:02   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,474
...and wget is not a native Windows tool in your opinion?

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 1st March 2017, 23:09   #3
Aleksey
Junior Member
 
Join Date: Mar 2017
Posts: 3
wget is not a native Windows tool. Am i wrong?

I have solved my problem by getting wget for windows inside my installer and using it to get files.
Aleksey is offline   Reply With Quote
Old 2nd March 2017, 00:21   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,474
A native tool is (IMHO) a .EXE that uses the normal WinAPI excluding unix tools that have been "ported" to Cygwin. wget is not shipped as a part of Windows of course but it is a native program.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump