简体   繁体   中英

How do I use an existing HTTP session for install4j?

Using install4j 7.0.2/7.0.3 here.

The main program starts the auto-updater via ApplicationLauncher.launchApplication .

We need to use an existing HTTP (HTTPS actually) session to even access the download site, let alone download stuff.

Is it possible to pass the session ID to the auto-updater so that it will include it in the HTTP headers? Or is there generally a way to pass HTTP header data to the autoinstaller?

The "Check for update" action and the "Download file" action are the ones that make HTTP connections in the update downloader.

Both of them have a "Request headers" property. You can set installer variables for the update downloader with arguments when invoking ApplicationLauncher.launchApplication :

-Vheader1=value1

Then you can use them with the syntax

${installer:value1}

in the request header properties.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM