0
在状态码= 302上,应用程序重定向到的URL在哪里?它在响应头部分的字段uri中吗?我如何在飞行中修改它?如何修改http重定向上的网址?
case 'post':
r = request.post({
url: newurl,
form: req.body,
headers: req.headers,
}, function callback(err, HttpResponse, body) {
debug(res.statusCode); /* 302 */
});
这里是从上面的POST请求的响应:
{ response:
{ headers:
{ 'content-type': 'text/html',
'content-length': '332',
location: 'https://11.21.164.11:10635/html/listing.tml?showError=&showMessage=Created%20successfully.',
uri: 'https://11.21.164.11:10635/html/listing.tml?showError=&showMessage=Created%20successfully.' },
statusCode: 302,
body: '\r\n <html><head>\r\n<title>Found</title>\r\n </head></html>\r\n'} }
是场上的位置URL修改在飞行中一旦我发现了302个状态码? – Rsk23