1

即使我指定了代理 url,我的 POST 请求也不会发送给 Fiddler:

router.get('/', function (req, res) {

console.log("in /api/");
 request(
        {
            method: "POST",
            uri: "http://api(...)'", //I cut the real url
            proxy: "http://127.0.0.1:8888" // 
        },
        function (err, response, body) {
           // console.log(response);
            res.send(response); // this gives me a real response
        });

});

注意:我的网址:http ://node.dev:8080/api指向本地主机。

知道我做错了什么吗?

4

1 回答 1

0

刚刚意识到这是我与提琴手有关的问题。我需要更改提琴手设置以显示所有进程,而不仅仅是网络浏览器。

于 2015-02-17T17:52:49.243 回答