mIRC Home    About    Download    Register    News    Help

Print Thread
#12033 19/02/03 08:50 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
could some one please make a simple socket script that gets a line of text from a web page??????


Need amazing web design for low price: http://www.matrixn3t.net
#12034 19/02/03 09:43 PM
Joined: Dec 2002
Posts: 68
P
Babel fish
Offline
Babel fish
P
Joined: Dec 2002
Posts: 68
I'm not good with sockets or anything but it might be good if you provide some people with more info. The site, the line, etc. Maybe it's not needed, I'm not sure.

#12035 19/02/03 10:13 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
well it really doesnt matter what site or what line i just need a simple script to learn from and to use on my script =p


Need amazing web design for low price: http://www.matrixn3t.net
#12036 20/02/03 12:44 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Pulling from the posts I have made on the subject, perhaps I can suggest an order to read them in.
  • Re: Web Update

    This first one shows you how to do exactly what you asked: read just a single line from a web page and nothing else.

  • Re: Stripping off html codes

    Another, slightly more advanced socket script I wrote a while ago is a tool you can use to practice your HTTP in a window until you get the hang of it.

  • Re: Random quote

    Once you're familiar with how it all works, you'll probably want to do a little formatting of the lines that you retreive as you retrieve them. This next piece of code is an example.

  • Re: Auto-Update

    A bit more complex example is one I wrote for someone who was interested in checking to see if a file he wanted to GET was actually present on the server or not, and downloading a file (mIRC603.exe) through HTTP like a browser would (without the error checking and dialogs that pop up -- gotta leave something for the other guy to do laugh )
Or you can do your own search using the forum's Search feature.
  1. Search
  2. Forum or category search: All forums
  3. Words to search for: on *:SOCKREAD:
  4. Search options: Entire phrase
  5. Date range: All posts
  6. Number of results to show per page: 25
  7. Click the Submit button.
Happy scripting. cool


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard