私はプロキシの下にいて、試しcurl http://localhost/mysite
たりcurl http://127.0.0.1/mysite
カールしたりすると、プロキシで解決しようとします。オプションで試してみましたが、うまくいき--noproxy
ません。としてプロキシを持つ外部サーバーに対して正常に動作していますcurl http://mysite.com
。
私の構成:
- Windows 8 での Cygwin (bash) と curl 拡張機能。
- プロキシ:
proxy.domain.xx:1080
認証なし http_proxy=http://proxy.domain.xx:1080
- ローカル サーバー: XAMP バージョン 1.8.0
- Apache ポート: 80,443
- ブラウザ: プロキシを使用する Chrome ですが、アクセスするように構成されています
localhost
。*.dev
curl --help から
--noproxy : プロキシを使用しないホストのカンマ区切りリスト
私が試したこと:
- ファイアウォールを無効にしましたが、何もありません
$ curl -v http://localhost/mysite
-> デバッグ:応答
Connected to proxy.domain.xx (200.55.xxx.xx) port 1080 (#0) GET http://localhost/mysite HTTP/1.1 User-Agent: curl/7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8r zlib/1.2.3 Host: localhost Accept: */* Proxy-Connection: Keep-Alive The system returned: <PRE><I>(111) Connection refused</I></PRE>
curl -v --noproxy localhost, http://localhost/muestra
応答
About to connect() to localhost port 80 (#0) * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 80 (#0) > GET /mysite HTTP/1.1 > User-Agent: curl/7.21.1 (i686-pc-mingw32) libcurl/7.21.1 OpenSSL/0.9.8r zlib/1.2.3 > Host: localhost > Accept: */* > < HTTP/1.1 301 Moved Permanently < Server: Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 < Location: http://localhost/mysite < Content-Length: 331 < Content-Type: text/html; charset=iso-8859-1
これを修正する方法はありますか?