1

我有以下脚本:

  def page2(self):
  """GET / (request 201)."""
     result = request201.GET('/mypage/', None,
     ( NVPair('Accept', 'image/gif, image/jpeg, image/pjpeg, image/pjpeg, application/x-   shockwave-flash, */*'), 
     NVPair('Accept-Language', 'en-us'), ))

# here i want to print the html source code from the result

return result

该脚本是使用Grinder Proxy录制的。谢谢你。

4

1 回答 1

0

添加这一行:

print result.text

有关更多详细信息,请参阅http://grinder.sourceforge.net/g3/script-javadoc/HTTPClient/HTTPResponse.html

于 2012-11-24T01:37:11.717 回答