apache - Download a file with a parameter in URL -
i noticed downloading file on apache server with:
example.com/myfile.zip?parameter=2365 gives same result / same downloaded file / same downloaded filename on client browser downloading:
example.com/myfile.zip is supported , documented feature of apache?
i happy it, , useful tracking purposes (i can ship download links parameters ?source=email , able see parameter in apache logs, useful!), wanted sure work on browsers (chrome, firefox, ie, safari, etc.)
note: sure on browsers, downloaded file have filename myfile.zip , not myfile.zip<somechar>parameter=2365? tried wget example.com/myfile.zip?parameter=2365 , unfortunately filename on disk myfile.zip?parameter=2365, doesn't work wget.
it's query string, if there's nothing configured analyse parameters server return file.
as you've noticed, apache logs include information if configured to. it's safe use syntax, defined part of uri specification.
Comments
Post a Comment