0% found this document useful (0 votes)
29 views7 pages

TP 1 Telnet, FTP and Web

The document provides a comprehensive guide on using Telnet and FTP commands, including installation procedures for the Telnet client on Windows systems. It outlines standard commands for both Telnet and FTP, detailing their functionalities and usage. Additionally, it includes practical exercises for connecting to servers and observing HTTP requests and responses.

Uploaded by

Djerry free
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views7 pages

TP 1 Telnet, FTP and Web

The document provides a comprehensive guide on using Telnet and FTP commands, including installation procedures for the Telnet client on Windows systems. It outlines standard commands for both Telnet and FTP, detailing their functionalities and usage. Additionally, it includes practical exercises for connecting to servers and observing HTTP requests and responses.

Uploaded by

Djerry free
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

TP 1 : USING TELENT

Telnet commands and uses.

Standard commands are

Command Description

? Calls up the help menu

close Ends the Telnet session

display argument Displays the various parameters for the current connection (port, terminal type, etc.)

environ argument Defines variables for the respective operating system environment

logout Ends the current Telnet session as long as the remote host supports the logout option

mode type Specifies the transmission type (text file, binary file)

open hostname Builds an additional connection to the selected host on top of the existing connection

quit Ends the Telnet client connection including all active connections

send argument Sends selected, typical Telnet character strings to the host

set argument Changes the connection parameters

unset Loads the pre-defined connection parameters

Install Telnet Client by using a command


line
On Windows 7, Windows Server 2008 R2, Windows Server 2008 or
Windows Vista you can use the following command line procedure to
install Telnet Client.

To install Telnet Client by using a command


line
1. Open a command prompt window. Click Start, type cmd in
the Start Search box, and then press ENTER.
2. Type the following command:

Copy
pkgmgr /iu:"TelnetClient"

3. If the User Account Control dialog box appears, confirm that


the action it displays is what you want, and then
click Continue.
4. When the command prompt appears again, the installation is
complete.

Install Telnet Client on Windows 7 or


Windows Vista
On Windows 7, Windows Vista, you can use the Windows Features tool to
install optional components.

To install Telnet Client on Windows 7 or


Windows Vista
1. Click Start, and then click Control Panel.
2. On the Control Panel Home page, click Programs.
3. In the Programs and Features section, click Turn Windows
features on or off.
4. If the User Account Control dialog box appears, confirm that
the action it displays is what you want, and then
click Continue.
5. In the Windows Features list, select Telnet Client, and then
click OK.

Connect your PC to the Internet.


Connect to the server telehack.com 23 using telnet on command line.

Type ? to list the different commands.

a) What is the IP address given. What does it correspond to?


b) What is the time?
c)
2 . WWW methods

We will observe the operations of the different HTTP requests and responses.

Let us start with the GET method.


telnet gaia.cs.umass.edu 80
GET /kurose_ross/interactive/index.php HTTP/1.1
Host: gaia.cs.umass.edu

Generally, when you telnet a webserver, the screen becomes blank and you don’t see
what you are typing.

After telnet,

Type set localecho, and then press Enter.


a) Observe the response.
b) What does the different codes mean?
c) Repeat with the different HTTP/1.1 methods and observe the response.

Connect to the site www.spm.gov.cm


Try to down load the image on the welcome page.
https://www.spm.gov.cm/x_images/page_garde_08.png

On the dark screen, type the following lines and observe the output obtained.

GET /x_images/page_garde_08.png HTTP/1.1


Host: www.spm.gov.cm

Don’t forget this site uses HTTPS!

a) What is the server used ?


b) Which version of HTTP is the server using?
c) Use the HEAD method instead and give

3. FTP commands

FTP
Command Description of Command

! This command toggles back and forth between the operating system and ftp. On
back in the operating system, typing exit takes you back to the FTP command lin
FTP
Command Description of Command

? Accesses the Help screen.

append Append text to a local file.

ascii Switch to ASCII transfer mode.

bell Turns bell mode on or off.

binary Switches to binary transfer mode.

bye Exits from FTP.

cd Changes directory.

close Exits from FTP.

delete Deletes a file.

debug Sets debugging on or off.

dir Lists files, if connected.


dir -C = lists the files in wide format.
dir -1 = Lists the files in bare format in alphabetic order.
dir -r = Lists directory in reverse alphabetic order.
dir -R = Lists all files in current directory and sub directories.
dir -S = Lists files in bare format in alphabetic order.

disconnect Exits from FTP.

get Get file from the remote computer.


FTP
Command Description of Command

glob Sets globbing on or off. When turned off, the file name in the put and get comm
is taken literally, and wildcards will not be looked at.

hash Sets hash mark printing on or off. When turned on, for each 1024 bytes of data
received, a hash-mark (#) is displayed.

help Accesses the Help screen and displays information about the command if the
command is typed after help.

lcd Displays local directory if typed alone or if path typed after lcd will change the lo
directory.

literal Sends a literal command to the connected computer with an expected one-line
response.

ls Lists files of the remotely connected computer.

mdelete Multiple delete.

mdir Lists contents of multiple remote directories.

mget Get multiple files.

mkdir Make directory.

mls Lists contents of multiple remote directories.

mput Send multiple files.

open Opens address.


FTP
Command Description of Command

prompt Enables or disables the prompt.

put Send one file.

pwd Print working directory.

quit Exits from FTP.

quote Same as the literal command.

recv Receive file.

remotehel Get help from remote server.


p

rename Renames a file.

rmdir Removes a directory on the remote computer.

send Send single file.

status Shows status of currently enabled and disabled options.

trace Toggles packet tracing.

type Set file transfer type.

user Send new user information.

verbose Sets verbose on or off


FTP
Command Description of Command

Try to connect to the server ftp.gnu.org.

Navigate through the site and try to download any document of your choice.

You might also like