mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2004
Posts: 2
D
DSSMob Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: May 2004
Posts: 2
heres the new error:
**********ERROR****************
Date: Sun, 09 May 2004 22:52:36 GMT
Server: Apache/1.3.29 (Unix) mod_deflate/1.0.20
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>403 Forbidden</TITLE>
</HEAD><BODY>
<H1>Forbidden</H1>
You don't have permission to access /lyrics/50cent/wanksta.html
on this server.<P>
<HR>
<ADDRESS>Apache/1.3.29 Server at azlyrics.com Port 80</ADDRESS>
</BODY></HTML>
********END OF ERROR*********

Heres: what the script lookslike :

on *:SOCKOPEN:mp3: {
if ($sockerr) { /set -u0 %err $input(Error Connecting To Socket, o, Error) | /halt }
echo -s *** Socket $sockname was just opened, Retrieving file info
/sockwrite -n $sockname GET /lyrics/50cent/wanksta.html HTTP/1.0
/sockwrite -n $sockname Accept: */*
/sockwrite -n $sockname Host: www.azlyrics.com
/sockwrite -n $sockname Connection: Keep-Alive
/sockwrite -n $sockname $crlf
if ($IsFile(mp3.txt)) .remove mp3.txt
}

on *:SOCKCLOSE:mp3: {
echo -s *** Socket $sockname has been Closed *** MobMirc
/run mp3.txt
}


on *:SOCKREAD:mp3: {
sockread %temp
/sockread -f &data
/bwrite mp3.txt -1 -1 &data
}


and im using --> /sockopen mp3 www.azlyrics.com 80 <-- to trigger the routine.


Thanx in Advanced for any help


The One The Only DSSMob
Joined: Dec 2003
Posts: 219
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Dec 2003
Posts: 219
Hi!

Try adding a User-Agent and Language:


/sockwrite -n $sockname User-Agent: Mozilla/5.0
/sockwrite -n $sockname Accept-Language: en-us;

It maybe checks one of them or both.

Joined: May 2004
Posts: 2
D
DSSMob Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: May 2004
Posts: 2
smile thank you cool


The One The Only DSSMob
Joined: May 2005
Posts: 1
M
Mostly harmless
Offline
Mostly harmless
M
Joined: May 2005
Posts: 1
*** Connecting to irc.dal.net (6662)
-
*** Unable to connect (Socket is not connected)

what can I do? confused


Link Copied to Clipboard