0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

プロキシ環境下でAWS SDK for PHPを利用してファイルのアップロード・ダウンロードを行いたい

Posted at

クライアント作成時に 'http' => ['proxy' => 'http://192.168.16.1:10'] を追加することで、プロキシ環境下でAWS SDK for PHPを利用したS3へのアクセスが可能となります。

require 'vendor/autoload.php';

use Aws\S3\S3Client;
use Aws\Exception\AwsException;

$s3 = new \Aws\S3\S3Client([
    'resion' => 'ap-northeast-1',
    'version' => 'latest',
    'profile' => 'default',
    'http' => ['proxy' => 'http://192.168.16.1:10']
]);

参考

↓の proxy を参照

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?