节点GET请求显示正文

时间:2016-06-06 21:46:46

标签: node.js get

我有一个重定向请求,它执行正确页面的GET。这是日志:

{ request:
   { uri: 'https://xxxx:10635/html/create.html?showMessage=Created',
     method: 'GET',
     headers:
      { referer: 'https://xxxxx:10635/html/volume/create_submit.tml',
        host: 'xxxxx:10635' } } }
{ response:
   { headers:
      { 'content-type': 'text/html',
        'content-length': '76844' },
     statusCode: 200,
     body: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Str ../../common/termsConditions.html\', \'termsConditions\')">Terms &amp; Conditions</a>&nbsp;:&nbsp;<a class="footer_element" href="/html/sitemap.htm">Site Map</a>&nbsp;:&nbsp;<a class="footer_element" href=/index.html>Home</a>\n\t\t\t\t</span>\n\t\t\t</td>\n\t\t\t<td><img src="/html/images/header/spacer.gif" alt="" width="1" height="1" border="0" /></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan="3"><img src="/html/images/header/spacer.gif" alt="" width="1" height="1" border="0" /></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td><img src="/html/images/header/spacer.gif" alt="" width="1" height="1" border="0" /></td>\n\t\t\t<td bgcolor="#cccccc"><img src="/html/images/header/spacer.gif" alt="" width="1" height="1" border="0" /></td>\n\t\t\t<td><img src="/html/images/header/spacer.gif" alt="" width="1" height="1" border="0" /></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan="3"><img src="/html/images/header/spacer.gif" alt="" width="1" height="1" border="0" /></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td><img src="/html/images/header/spacer.gif" alt="" width="1" height="1" border="0" /></td>\n\t\t\t<td valign="top">\n\t\t\t<table width="100%" border="0" cellspacing="0" cellpadding="0">\n\t\t\t<tr>\n\t\t\t\t<td nowrap><span class="copyright">&nbsp;&nbsp;&nbsp;Copyright&nbsp;2016&nbsp;<a class="copyright" </a>&nbsp;&nbsp;All rights reserved.</span><br /></td>\n\t\t\t\t<td align="right" ><a target=_blank><img src="/html/images/header/f" alt="" border="0" /></a></td>\n\t\t\t</tr>\n\t\t\t</table>\n\t\t\t</td>\n\t\t\t<td><img src="/html/images/header/spacer.gif" alt="" width="1" height="1" border="0" /></td>\n\t\t</tr>\n\t\t</table>\n</td></tr>\n</table> \n-->\n</body>\n</html>' } }

0 个答案:

没有答案