mIRC Homepage
Posted By: Diobjectica Sockread issue - 18/10/12 04:59 AM
I volunteer as a moderator on a forum and until recently I used a simple little socket script to automatically check for new posts. Now after an update to the site, it echoes "Your browser is outdated"

I'm guessing the offending line is

sockwrite -n $sockname User-Agent: compatible; MSIE 4.0; Windows NT 4.0

I tried changing 4.0 to 9.0.10 but that didn't work. Any ideas?
Posted By: KindOne Re: Sockread issue - 18/10/12 05:40 AM
sockwrite -n $sockname User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0

Try an updated OS/browser wink
Posted By: Diobjectica Re: Sockread issue - 18/10/12 06:06 AM
Still getting the same thing.
Posted By: 5618 Re: Sockread issue - 18/10/12 06:12 AM
Try:
Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20100101 Firefox/16.0

Firefox 5 is a bit outdated :P
Posted By: drum Re: Sockread issue - 18/10/12 06:13 AM
Originally Posted By: Diobjectica
Still getting the same thing.


If you know a particular browser works with the site, then go to http://whatsmyuseragent.com/ from that browser to see the useragent tag it uses.

If that doesn't work, it may mean you need to use a different HTTP version in your GET/POST message.
Posted By: Diobjectica Re: Sockread issue - 18/10/12 06:20 AM
That didn't work and I'm using

sockwrite -n $sockname GET %get HTTP/1.1

What should I use?
Posted By: MeStinkBAD Re: Sockread issue - 26/10/12 11:39 PM
What's the URL to these forums?
© mIRC Discussion Forums