mIRC Homepage
Posted By: Gods_Hell Ht access and sockets - 29/10/03 11:45 AM
on *:sockopen:getindex:{
sockwrite -nt $sockname GET $+(index.html) HTTP/1.1
sockwrite -nt $sockname Accept-Language: en-us
sockwrite -nt $sockname User-Agent: Mozilla/??
sockwrite -nt $sockname LOGIN: loginname:password <= this is not correct i suppose ? :s
sockwrite -nt $sockname Host: 213.118.214.156
sockwrite -nt $sockname Connection: Keep-Alive
sockwrite -t $sockname $str($crlf,2)
}


how to use a ht access in sockets?
how to send the user an pass :s

where can i find more sockwrite commands ?
Posted By: Online Re: Ht access and sockets - 29/10/03 01:49 PM
sockwrite -n $sockname Authorization: $encode(username:password,m)

You can "find" those commands by either reading the RFC or using a packet sniffing program (like Ethereal) to capture what your browser sends.
Posted By: Gods_Hell Re: Ht access and sockets - 29/10/03 02:23 PM
thx man!
but won't work :s

still says 401
Posted By: KingTomato Re: Ht access and sockets - 29/10/03 06:18 PM
[/code]
on *:sockopen:getindex:{
sockwrite -n $sockname GET /index.html HTTP/1.0
sockwrite -n $sockname Accept-Language: en-us
sockwrite -n $sockname Authorization: $encode(username:password,m)
sockwrite -n $sockname Host: 213.118.214.156
sockwrite -n $sockname $crlf
}
[code]

Make sure the bold is the website your trying to contact, not your own ip. Im not positive which you used, but just making sure..
© mIRC Discussion Forums