Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi.
Using IO::Socket, I've managed to make this perl script that acts like a super super small web server. What it does, is it opens port 8000 on my comp, and when a person requests for my ip with the 8000 port number, it will print out to the client an html page.
If the client, for example types: 24.232.109.10:8000/aaa.mp3
Is there a command that I can use to get the last part of the url that the user typed (in this case aaa.mp3)?
Thanks,
Ralph :)
Using IO::Socket, I've managed to make this perl script that acts like a super super small web server. What it does, is it opens port 8000 on my comp, and when a person requests for my ip with the 8000 port number, it will print out to the client an html page.
If the client, for example types: 24.232.109.10:8000/aaa.mp3
Is there a command that I can use to get the last part of the url that the user typed (in this case aaa.mp3)?
Thanks,
Ralph :)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Commands for IO::Socket
by zigster (Hermit) on Feb 15, 2001 at 23:28 UTC | |
Re: Commands for IO::Socket
by merlyn (Sage) on Feb 15, 2001 at 23:08 UTC | |
Re: Commands for IO::Socket
by Anonymous Monk on Feb 16, 2001 at 04:43 UTC | |
by blueflashlight (Pilgrim) on Feb 20, 2001 at 10:45 UTC | |
Re: Commands for IO::Socket
by Anonymous Monk on Feb 16, 2001 at 04:36 UTC | |
by merlyn (Sage) on Feb 16, 2001 at 04:39 UTC | |
Re: Commands for IO::Socket
by SilverB1rd (Scribe) on Feb 16, 2001 at 00:44 UTC |
Back to
Seekers of Perl Wisdom