cpt_ri_F5
Jun 13, 2023Cirrostratus
Download file from AWS S3 bucket / http profile
Hello,
I'm trying to download a file from AWS S3 bucket (backend) through a standard VS (HTTP/iRule) but it doesn't work. It downloads an empty/corrupt file.
"curl path/file" works from F5.
I tried to deactivate the http profile, but still ko!
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] contains uri-data] } {
HTTP::disable
pool MYPOOL
}
}
when HTTP_RESPONSE {
HTTP::disable
}
Someone has experienced this issue?
Thank you for your help
Hello,
Resolved, add only : HTTP::header replace Host "hostname"
FYI : url is : hostname.bucket.xxxxxxaws......