Page 1 of 1

problems with babylon (altavista) & google translate

Posted: 2008-03-31 06:33:33
by ABNormal
something has been changed in that sites, but they refuse to reply to my scripts with a translation, while when i see that translation through my browser i have no problems...

altavista gave me this answer:

We're sorry we've encountered an error with your request.
If you think this is a bug we should know about {send us e-mail} and let us know the following:

* What browser you were using.
* The operating system you are on.
* The type of translation you were trying when this error occurred.


so, is there a way to simulate a browser during these sessions?

ciao ANToine and thx

Posted: 2008-03-31 09:23:17
by antp
Hi,
The brower user-agent used by AMC is the following:

Code: Select all

Mozilla/5.0 (compatible; Ant Movie Catalog using Indy Library)
If you use Firefox, you can install the extension named "user agent switcher" to test browsing using that user-agent.

Posted: 2008-03-31 13:27:02
by ABNormal
1st of all
sorry! i wrote in a wrong area!

2nd: that agent (Mozilla/5.0 (compatible; Ant Movie Catalog using Indy Library)) brings to that error. damn.
any way to change that agent inside AMC?

Posted: 2008-03-31 13:46:04
by antp
Either go change in the RCData using a resource editor, but I am not sure that it would work, or recompiling the program after having made the change in the code.

Posted: 2008-04-06 09:22:54
by ABNormal
antp wrote:Either go change in the RCData using a resource editor, but I am not sure that it would work, or recompiling the program after having made the change in the code.
YEAAH! i used an HexEditor replacing that header and it works again with all online translators!

procedure
I looked for: Mozilla into MovieCatalog.exe;
then i changed:
Mozilla/5.0 (compatible; Ant Movie Catalog using Indy Library) with the standard
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) filling with spaces the oversized text so...
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)°°°°°°°°°°°° where ° means a space (HEX 20)


Thank You a lot Antoine.

ABN