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?

プロキシって?

Posted at

proxy

代理の意。クライアントの代わりになってアクセスする役割を担うシステムを言います。

例としては HTTP プロキシ。ブラウザ等の HTTPクライアントの代わりになって Web サイトにアクセスし、結果をクライアントに返します。

他には NRPE プロキシ。監視サーバである Nagios の代わりになって被監視環境にアクセスし、取得した結果を監視サーバである Nagios に返します。

HTTP プロキシ

プロキシ利用の場合と利用しない場合では、HTTPヘッダの情報に違いが生じます。

HTTPプロキシを利用しない場合 -> origin-form
HTTPプロキシを利用する場合 -> absolute-form
HTTPSプロキシを利用する場合 -> authority-form

プロキシを利用するためには、HTTPクライアントに対し、明示的にプロキシサーバの情報を受け渡してやる必要があります。

  • curl の場合 -> -x (proxy-host):(proxy-port)
  • Guzzle (php) の場合 -> 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?