0% found this document useful (0 votes)
62 views6 pages

TP 1 Telnet, FTP and Web

Uploaded by

Steves Fall
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)
62 views6 pages

TP 1 Telnet, FTP and Web

Uploaded by

Steves Fall
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/ 6

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. Once back in the operat
system, typing exit takes you back to the FTP command line.

? Accesses the Help screen.

append Append text to a local file.


FTP
Command Description of Command

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.

glob Sets globbing on or off. When turned off, the file name in the put and get commands is taken literall
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
FTP
Command Description of Command

displayed.

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

lcd Displays local directory if typed alone or if path typed after lcd will change the local 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.

prompt Enables or disables the prompt.

put Send one file.

pwd Print working directory.


FTP
Command Description of Command

quit Exits from FTP.

quote Same as the literal command.

recv Receive file.

remotehelp Get help from remote server.

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

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