mIRC Home    About    Download    Register    News    Help

Print Thread
#239341 18/10/12 04:59 AM
D
Diobjectica
Diobjectica
D
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?

#239342 18/10/12 05:40 AM
Joined: Feb 2011
Posts: 469
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 469
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

KindOne #239343 18/10/12 06:06 AM
D
Diobjectica
Diobjectica
D
Still getting the same thing.

#239344 18/10/12 06:12 AM
5
5618
5618
5
Try:
Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20100101 Firefox/16.0

Firefox 5 is a bit outdated :P

#239345 18/10/12 06:13 AM
Joined: Dec 2002
Posts: 294
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 294
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.

drum #239346 18/10/12 06:20 AM
D
Diobjectica
Diobjectica
D
That didn't work and I'm using

sockwrite -n $sockname GET %get HTTP/1.1

What should I use?

#239444 26/10/12 11:39 PM
M
MeStinkBAD
MeStinkBAD
M
What's the URL to these forums?


Link Copied to Clipboard