0
我想要使用下面的代码来解析网页。WebHarvest通过GET correcly不传递http参数
<var-def name="parameter">value</var-def>
<var-def name="url">http://www.example.com/script</var-def>
<html-to-xml>
<template>
<http method="get" url="${url}">
<http-param name="param"><var name="parameter"/></http-param>
</http>
</template>
</html-to-xml>
而不是让“价值”作为“参数”但是,剧本变得像[email protected]
。与“post”方法相同的代码工作正常,但是这个特殊的脚本需要“get”参数。我试过用${parameter.toString}
代替<var name="parameter"/>
,但结果是一样的。我该如何解决?