I need to be able to retrieve a file name from a dynamic link so I tried the >following code by weaponx: $oHTTP = ObjCreate('winhttp.winhttprequest.5.1') $oHTTP.Open('POST', 'https://linkgoeshere.com/random', 1) $oHTTP.SetRequestHeader('Content-Type','application/x-www-form-urlencoded') ;$oHTTP.setTimeouts(5000, 5000, 15000, 15000) $oHTTP.Send() $oHTTP.WaitForResponse $ContentDisposition = $oHTTP.GetResponseHeader("Content-Disposition") $array = StringRegExp($ContentDisposition, 'filename="