Hi all,

i've got a perl script which does the following:

1. gets html page with SEARCH FORM
2. Introduce QUERY content and press Search button
3. Several pages are obtained
4. Process the first page and press NEXT PAGE BUTTON and continue processing
next pages

Problem:

When Query contains only one word it works. More than one word (e.g.
"colorectal cancer" ) it fails in point 4 although the first page obtained
with the first 50 results seems correct:


Html code for 1 word ( I press NextList2 button):

<form name="srchForm" action="/netacgi/nph-Parser" method="GET"
onsubmit="unesc()">
<INPUT TYPE="HIDDEN" NAME="u" VALUE="/netahtml/PTO/search-adv.htm">
<INPUT TYPE="HIDDEN" NAME="OS" VALUE="cancer">
<INPUT TYPE="HIDDEN" NAME="RS" VALUE="cancer">
<INPUT TYPE="HIDDEN" NAME="Query" VALUE="cancer">
<INPUT TYPE="HIDDEN" NAME="Srch1" VALUE="cancer">
<INPUT TYPE=submit NAME=NextList2 VALUE="Next 50 Hits"><BR><BR></FORM>


Html code for 2 words ( I press NextList2 button):

<form name="srchForm" action="/netacgi/nph-Parser" method="GET"
onsubmit="unesc()">
<INPUT TYPE="HIDDEN" NAME="u" VALUE="/netahtml/PTO/search-adv.htm">
<INPUT TYPE="HIDDEN" NAME="OS" VALUE="&quot;colorectal cancer&quot;">
<INPUT TYPE="HIDDEN" NAME="RS" VALUE="&quot;colorectal cancer&quot;">
<INPUT TYPE="HIDDEN" NAME="Query" VALUE="&quot;colorectal cancer&quot;">
<INPUT TYPE="HIDDEN" NAME="Srch1" VALUE="%22colorectal cancer%22">
<INPUT TYPE=submit NAME=NextList2 VALUE="Next 50 Hits"><BR><BR></FORM>

I get the following error:

Error #2406LINEA=== Error: Process terminated abnormally. Document may be
truncated.

But if I do it manually from the website it works

Any idea?? I'm completely lost!
Thanks!
T.

Reply via email to