dousong1992 2014-08-27 17:52
浏览 114
已采纳

将显示Amazon S3错误防火墙临时标头

I am having a issue regarding Amazon S3 urls giving the error

Provisional headers are shown

I only seem to get this error when i am connected to the wifi over certain networks my main problem is when i am in starbucks on their WIFI i get the error but on any other WIFI i dont get the error and the video will play fine.

I am using the latest Amazon PHP SDK to provide signed urls like below.

$url = $client->getObjectUrl('videos', 'movie.mp4', '+59 minutes', array(
                            'ResponseContentType' => 'video/mp4'
                        ));

This will generate me a signed url like this.

https://video.s3.amazonaws.com/movie.mp4?response-content-type=video%2Fmp4&AWSAccessKeyId=AKIAJHLH6A2TDNLM37YQ&Expires=1409164722&Signature=melsHcsVaXRONs72dhNqM407Cnc%3D

Below is the working version which has a content range bytes

    Accept-Ranges:bytes
    Content-Length:141956
    Content-Range:bytes 9223221-9365176/9365177
    Content-Type:video/mp4
    Date:Wed, 27 Aug 2014 17:39:44 GMT
    ETag:"3fde140b11d9ebb5ef8480aa859c78de"
    Last-Modified:Mon, 29 Jul 2013 10:56:00 GMT
    Server:AmazonS3
    x-amz-id-2:1+rCBJveiYu1d+fWgrvioqijD7kF3fkMNVnSi3Le8LVERwxAtRKRSSj7z7Ma01vy
    x-amz-request-id:8D1E676B0D61E8FD

But when i am on starbucks WIFI i get the error.

Provisional headers are shown

But no bytes range 0-

I know this is vague question and someone will probably instantly down vote it but it is a genuine issue i am experiencing and i really need to get it resolved.

It means anyone watching videos on my website wont be able to view them over certain WIFI connections normally public ones all i can think is it maybe a firewall error.

Any help please or suggestions

  • 写回答

1条回答 默认 最新

  • douke6857 2014-08-27 17:59
    关注

    My first guess it that there is no error, and StarBucks has just decided to block that traffic for whatever reason their firewall deemed fit.

    Provisional headers returned seems to indicate that a request was blocked. More info about that can be found here. "CAUTION: provisional headers are shown" in Chrome debugger

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥60 优博讯DT50高通安卓11系统刷完机自动进去fastboot模式
  • ¥15 minist数字识别
  • ¥15 在安装gym库的pygame时遇到问题,不知道如何解决
  • ¥20 uniapp中的webview 使用的是本地的vue页面,在模拟器上显示无法打开
  • ¥15 网上下载的3DMAX模型,不显示贴图怎么办
  • ¥15 关于#stm32#的问题:寻找一块开发版,作为智能化割草机的控制模块和树莓派主板相连,要求:最低可控制 3 个电机(两个驱动电机,1 个割草电机),其次可以与树莓派主板相连电机照片如下:
  • ¥15 Mac(标签-IDE|关键词-File) idea
  • ¥15 潜在扩散模型的Unet特征提取
  • ¥15 iscsi服务无法访问,如何解决?
  • ¥15 感应式传感器制作的感应式讯响器