Hi Stephen,
Using '>' in your link is incorrect since it is a special character in
HTML. What I am saying is that your code is incorrect. Your query string
must be scaped before sending tot he server. You must use the hex
representation of > in your link
i.e. %3E.
This should not only make your HTML correct but will solve your parsing
problem as well.
Regards,
Dhaval Udani
Senior Analyst
M-Line, QPEG
OrbiTech Solutions Ltd.
+91-22-8290019 Extn. 1457
-----Original Message-----
From: Stephen.Harrington [mailto:Ste...@tr...]
Sent: Friday, September 27, 2002 11:08 PM
To: Stephen.Harrington; htmlparser-user
Subject: [Htmlparser-user] Problem parsing a link
I have a simple document which I am trying to parse a link out of:
Here is the code:
<html>
<body>
<DL>
<DT>YOUR QUERY WAS:
</DL>
Select one of the following documents to retrieve.
<P>
<HR>
<P><DL>
<DT><B>1:</B> <!-- hit --><A
HREF="/cgi-bin/view_search?query_text=postdate>20020701&txt_clr=White&bg
_clr=Red&url=http://localhost/Testing/Report
1.html">20020702 Report 1</A>
<DD><font size="-1">Score: 1000, Size: 7.4 kbytes, Type: URL file</font>
</DL>
</body>
</html>
The parser is getting confused by the '>' after the postdate. Instead
of returning the whole link:
http://localhost/cgi-bin/view_search?query_text=postdate>20020701&txt_cl
r=White&bg_clr=Red&url=http://localhost/Testing/Report
1.html
only a portion of the link is returned:
http://localhost/cgi-bin/view_search?query_text
If the 'postdate>' is replaced by 'postdate=' then it functions
properly. Seems like the parser is not looking at the double quotes.
I am using the latest integration build (1.2-2002_08_31)
Before digging into the source code and trying to fix the problem, I
thought maybe someone might have run into this problem before.
Thanks,
--stephen
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Htmlparser-user mailing list
Htm...@li...
https://lists.sourceforge.net/lists/listinfo/htmlparser-user
|