wget -q --header="Accept: text/html" http://localhost:3000/info/who_bought/2 -O- -q代表不显示输出 --header可以指定http头 -O代表指定输出位置,-O-表示输出到标准输出 相关文章: