Strict-transport-security: max-age=31536000 includeSubDomains preload UrlHead= $(curl -s -head $DownloadUrl ) echo ' $urlHead ' DMG file.Įxample usage to discovery if a link is valid: The command: 'curl -s -head $DownloadUrl' can be used to query a given URLs header to determine if the Location field points to a.
DMG file in the curl header Location field. DMG file directly or point to a URL which has the. Update the DownloadUrl='' variable with the URL of the target. Installs an application from the DMG file downloaded from the populated DownloadUrl='' LocationRaw=$(echo '$locationSearch' | cut -d' ' -f2) LocationSearch=$(echo '$urlHead' | grep https:) # Modify below this line at your own risk!Įcho 'Searching headers for download links' # *NOTE* this template is only designed to work with DMG files and does not support. # The command: 'curl -s -head $DownloadUrl' can be used to query a given URLs header to determine if the Location field points to a. # Update the DownloadUrl='' variable with the URL of the target.