Error with GetPage, I can't resolve it :(
Posted: 2005-09-04 19:18:37
Hi,
I'm making an Spanish Anime script getting the info from http://info.frozen-layer.net.
When you search a title in the Search form of the web, it shows the results if more than a hit is found (and I'm able to capture the list of results and urls). But if there is only one hit, the php directly forwards to the movie info page.
If I search Marmalade with the query:
http://info.frozen-layer.net/index.php? ... =marmalade
I get 2 results (no problem if I get 2 or more results)
But If I search Hayate with the query:
http://info.frozen-layer.net/index.php? ... ulo=hayate
It would give just 1 result so instead of that I directly get the info page:
http://info.frozen-layer.net/?a=showinf ... a0ec3ba4f8
The GetPage(Address) with an address that causes just one hit (like the 'hayate' one before) shows Socket Error #11004 and the Importing Data Window in Ant Movie Catalog says: "...frozen-layer.net?a=showinfoanime_id=554ttl=0ac413..." (the ... means no space in the window to see more). It's like there were no / and & symbols and the error appears!
Any help?
I'm making an Spanish Anime script getting the info from http://info.frozen-layer.net.
When you search a title in the Search form of the web, it shows the results if more than a hit is found (and I'm able to capture the list of results and urls). But if there is only one hit, the php directly forwards to the movie info page.
If I search Marmalade with the query:
http://info.frozen-layer.net/index.php? ... =marmalade
I get 2 results (no problem if I get 2 or more results)
But If I search Hayate with the query:
http://info.frozen-layer.net/index.php? ... ulo=hayate
It would give just 1 result so instead of that I directly get the info page:
http://info.frozen-layer.net/?a=showinf ... a0ec3ba4f8
The GetPage(Address) with an address that causes just one hit (like the 'hayate' one before) shows Socket Error #11004 and the Importing Data Window in Ant Movie Catalog says: "...frozen-layer.net?a=showinfoanime_id=554ttl=0ac413..." (the ... means no space in the window to see more). It's like there were no / and & symbols and the error appears!

Any help?
Code: Select all
procedure AnalyzeResultsPage(Address: string);
var
PageText: string;
Value: string;
begin
PageText := GetPage(UrlEncode(Address)); <--- The line that causes the error!
...
...
...