Can we specify file transfer in a Web page? Explain with the help of suitable example.
Yes, file transfer can be given in a web page. The first field within a URL gives a protocol . The URL ftp: / / ftp.cs.purdue.edu/pub/comer/netbook/client.c specifies as browser must employ anonymous FTP (file transfer protocol)to retrieve the file pub/comer/netbook/client.c from computer ftp.cs.purdue.edu.
A URL which specifies FTP (file transfer protocol) can be simply embedded I HTML consider the following illustration:
Source code from
< A HREF = "ftp: / /ftp.cs.purdue.edu/pub/comer/netbook/cl ient .c " > an illustration client program < /A > is available online.
The program segment will be displayed asillustrated below:
Source code from an illustration client program is available online. If the user choose the underlined segment , the browser uses FTP client of this to acquire a copy of the file client .c.