mIRC Home    About    Download    Register    News    Help

Print Thread
#239341 18/10/12 04:59 AM
Joined: Mar 2011
Posts: 5
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Mar 2011
Posts: 5
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?

Joined: Feb 2011
Posts: 448
K
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 448
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
Joined: Mar 2011
Posts: 5
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Mar 2011
Posts: 5
Still getting the same thing.

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Try:
Mozilla/5.0 (Windows NT 6.1; rv:16.0) Gecko/20100101 Firefox/16.0

Firefox 5 is a bit outdated :P

Joined: Dec 2002
Posts: 344
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 344
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
Joined: Mar 2011
Posts: 5
D
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Mar 2011
Posts: 5
That didn't work and I'm using

sockwrite -n $sockname GET %get HTTP/1.1

What should I use?

Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
What's the URL to these forums?


Beware of MeStinkBAD! He knows more than he actually does!

Link Copied to Clipboard