7 ms·
Some more details here http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/WorkingWithDownloadDistributions.html#DownloadDistValuesAllowedHTTPMeth
by necro 13y ago
Some more details here
http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/WorkingWithDownloadDistributions.html#DownloadDistValuesAllowedHTTPMethods http://docs.aws.amazon.com/AmazonCloudFront/latest/Developer...
I'm curious if the edge receives the full POST/PUT first and then does a complete PUT/POST to the origin, or does it forward as it's receiving.
- necro 13y agoDecided to do a quick test.. //make yourself a file dd if=/dev/zero of=1m count=1 bs=1m //post directly to origin time curl -F "file=@1m" -X POST "http://up4.pinkbike.com/upload/t.php" http://up4.pinkbike.com/upload/t.php" -w %{speed_upload}Bytes/s array(3) { ["HTTP_USER_AGENT"]=> string(81) "curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8y zlib/1.2.3" ["REQUEST_METHOD"]=> string(4) "POST" ["CONTENT_LENGTH"]=> string(7) "1048770" } 230177.000Bytes/s real 0m4.560s user 0m0.004s sys 0m0.010s //post via Cloudfront to same origin time curl -F "file=@1m" -X POST "http://dhima35gjf4ct.cloudfront.net/upload/t.php" http://dhima35gjf4ct.cloudfront.net/upload/t.php" -w %{speed_upload}Bytes/s array(3) { ["HTTP_USER_AGENT"]=> string(17) "Amazon CloudFront" ["REQUEST_METHOD"]=> string(4) "POST" ["CONTENT_LENGTH"]=> string(7) "1048770" } 227055.000Bytes/s real 0m4.623s user 0m0.005s sys 0m0.011s So upload time is not much different from my location. The origin is in San Jose, and in my case I'm in Vancouver BC, and going through the Seattle cloudfront edge. Would be interesting to see what you get from other locations ( I'm occasionally getting "ERROR: The request could not be satisfied" with cloudfront post )