"Check Later Version" fails with web proxies
Brought to you by:
dynclient,
sentinelguy
The program fails to check for a new version when the web proxies are involved.
Web proxies (like Proxomitron) modify web pages, including the one which is used for Clam Sentinel's auto check.
You can solve it by using placeholders. For example, modify http://clamsentinel.sourceforge.net/Version.php from:
1.21
into:
<!-- version start -->1.21<!-- version end -->
Then always look for what's between the comments instead of just grabbing the entire page.
Please open the url:
http://clamsentinel.sourceforge.net/Version.php
and attach a txt file with the html code that you have received.
Andrea Russo
The solution 1.21 is not compatible with previous versions.
Your request is attached.
The solution should always work as soon as you'll use HTML comments and detect the X in:
<!-- version start -->X<!-- version end -->
There's no need to grab the entire page just for that X.
Please open this url:
http://clamsentinel.sourceforge.net/VersionTest.php
and attach the result that you receive.
Probably the problem is that I don't have specified the content type (that it's text/plain). Now I have added the content type header.
Try the two url:
http://clamsentinel.sourceforge.net/Version.php
http://clamsentinel.sourceforge.net/VersionTest.php
And tell me if now the web proxy continue to add the new lines.
And try also with the program.
It works now (tried the program too), the correct content-type header did the job.
Here's your requested output anyway.
Last edit: lwc 2014-06-25