2011-09-27 2 views
2
$ curl http://localhost:7810/test 
hello world! 
$ 
$ 
$ wget http://localhost:7810/test 
--2011-09-27 07:04:06-- http://localhost:7810/test 
Resolving <snipped> 
Connecting to <snipped> connected. 
Proxy request sent, awaiting response... 502 Bad Gateway 
2011-09-27 07:04:06 ERROR 502: Bad Gateway. 

$ 

wget은 7810을 지정했지만 포트 80을보고있는 것으로 보입니다. 이 문제를 해결하려면 어떻게해야합니까?curl은 성공하지만 wget은 사용자 정의 포트에 대한 요청에 대해 502 오류를 발생시킵니다.

답변

1

구성 파일은 프록시가 지정된 ~/.wgetrc 일 수 있습니다.

관련 문제