Home  >  Q&A  >  body text

node.js - nodejs作为客户端请求html页面

如何让它再请求html页面里的css,js等需要再次请求的资源。

我的目标是让客户端发送的请求通过nodejs服务器,让后让node服务器去请求别的服务器,最后再把node请求回来的response返回给客户端。这个过程中遇到了以上问题。

PHP中文网PHP中文网2717 days ago256

reply all(1)I'll reply

  • 阿神

    阿神2017-04-17 11:32:09

    你可以用NodeJS实现代理啊
    https://github.com/nodejitsu/node-http-proxy

    reply
    0
  • Cancelreply