phnz
16th February 2011 12:18 UTC
NSIS - Cookie - inetc ?!
Hello
I would like to set a cookie with NSIS to confirm the installation with a php script.
I read the wiki, i found a little thread but it's not verry usefull...
http://nsis.sourceforge.net/Show_ins...ss_on_web_page
I try to access to the confirmation page with inetc::get (to be silent)
My php don't see any cookie...
I also track-it with Wireshark and no cookie in the header...
System::Call "wininet::InternetSetCookie("http://app.domain.com/download.php", "title", "aaa=ddd; expires = Wed, 30-May-2012 09:21:15")
inetc::get /SILENT "http://app.domain.com/download.php" "$PLUGINSDIR\CORE.exe" /end
Thanks everyone !
Sincerly,
Dave
Afrow UK
16th February 2011 13:22 UTC
Without looking at the code, inetc probably doesn't read the IE cookies (I doubt people would want that by default). I wouldn't be surprised if it doesn't save cookies from requests either. Why do you need to use a cookie? Can't you just use POST?
Stu
phnz
16th February 2011 15:05 UTC
I need to use a Cookie for validate. It's built-in.
So i'll need to use another way? Build my own installer with VS ?
Thanks
MSG
16th February 2011 19:33 UTC
If you do not have control over the php script, you could build your own plugin to handle the cookiejar, I'm sure. Or you let the user download the file to $EXEDIR manually, or something...
Afrow UK
16th February 2011 22:50 UTC
Or you could modify inetc to suite. It uses WinInet.
Stu
Takhir
17th February 2011 17:13 UTC
Try version from 13 July 2010 - JohnTHaller modified Inetc (Disabled cookies and cache for cleanliness). I partly rolled this back for situations with Resume option enabled (because it just not work with flags added by JohnTHaller, but it looks like would be better just to rollback to this version. Afrow, can you remove last 2 versions? http://nsis.sourceforge.net/File:Inetc.zip
Afrow UK
17th February 2011 18:25 UTC
Done.
Stu
Takhir
18th February 2011 08:37 UTC
Good version from 13 July 2010 was removed :(. NP, I added /NOCOOKIES option (disabled by default) and only this option does what JohnTHaller wanted to have ;). New version uploaded. By default (no this option defined) our old good inetc will have reget feature and will send cookies as earlier. Again - please note that /NOCOOKIES conflicts with reget!. Wiki page updated.