mIRC Home    About    Download    Register    News    Help

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

Re: Sockread issue [Re: Diobjectica] #239342 18/10/12 05:40 AM
Joined: Feb 2011
Posts: 369
K
KindOne Offline
Pan-dimensional mouse
Offline
Pan-dimensional mouse
K
Joined: Feb 2011
Posts: 369
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


irc.swiftirc.net #msl (mIRC Scripting Language)
Re: Sockread issue [Re: KindOne] #239343 18/10/12 06:06 AM
Joined: Mar 2011
Posts: 5
D
Diobjectica Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Mar 2011
Posts: 5
Still getting the same thing.

Re: Sockread issue [Re: Diobjectica] #239344 18/10/12 06:12 AM
Joined: Jun 2007
Posts: 933
5
5618 Offline
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

Re: Sockread issue [Re: Diobjectica] #239345 18/10/12 06:13 AM
Joined: Dec 2002
Posts: 344
D
drum Offline
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.

Re: Sockread issue [Re: drum] #239346 18/10/12 06:20 AM
Joined: Mar 2011
Posts: 5
D
Diobjectica Offline OP
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?

Re: Sockread issue [Re: Diobjectica] #239444 26/10/12 11:39 PM
Joined: Apr 2003
Posts: 342
M
MeStinkBAD Offline
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!