home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / FTPc / UserManual < prev   
Text File  |  2000-05-26  |  30KB  |  487 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <HTML>
  3. <!-- Generated by TechWriter Professional 5.06 (02-Jul-99) -->
  4. <HEAD><TITLE>!FTPc User Manual</TITLE></HEAD>
  5. <BODY TEXT="#000000" BGCOLOR="#F0F0E0">
  6. <H1 ALIGN=CENTER>!FTPc</H1>
  7. <P>
  8. !FTPc is an internet <A HREF="#ftp">ftp</A> client for Risc OS. It is a program which enables you to <A HREF="#upload">upload</A> and <A HREF="#download">download</A> files to and from your <A HREF="#webspace">webspace</A> and download files from the numerous ftp <A HREF="#host">hosts</A> on the net.
  9.  
  10. <H4><A NAME="Contents">Contents</A></H4>
  11. <DL>
  12. <P><TABLE WIDTH="100%">
  13. <TR><TD><A HREF="#Requirements">Requirements</A>
  14. <TD><A HREF="#Abort">Abort</A>
  15. <TR><TD><A HREF="#Features">Features</A>
  16. <TD><A HREF="#Reconnect/New_connection">Reconnecting/New connection</A>
  17. <TR><TD><A HREF="#Logging_on">Logging on</A>
  18. <TD><A HREF="#Resume">Resume</A>
  19. <TR><TD><A HREF="#Using_the_filer">Using the filer</A>
  20. <TD><A HREF="#User_menu">User menu</A>
  21. <TR><TD><A HREF="#Uploading_files/directories">Uploading files/directories</A>
  22. <TD><A HREF="#URL_section">URL's</A>
  23. <TR><TD><A HREF="#Downloading_files">Downloading files/directories</A>
  24. <TD><A HREF="#Passive">Passive connections</A>
  25. <TR><TD><A HREF="#Moving_around_the_host">Moving around the host</A>
  26. <TD><A HREF="#Proxies,_Gateways_and_Firewalls">Proxies, Gateways and Firewalls</A>
  27. <TR><TD><A HREF="#Managing_your_remote_disc_space">Managing your remote disc space</A>
  28. <TD><A HREF="#Fine_Tuning">Fine Tuning</A>
  29. <TR><TD><A HREF="#Logging_off">Logging off</A>
  30. <TD><A HREF="#Problems">Problems</A>
  31. <TR><TD><A HREF="#Newer">Newer</A>
  32. <TD><A HREF="#Finer_points_of_Ftp">Finer points of Ftp</A>
  33. <TR><TD><A HREF="#Status_log">Status log</A>
  34. <TD><A HREF="#Contact">Contact</A>
  35. <TR><TD><A HREF="#Site_specific_commands">Site specific commands</A>
  36. <TD><A HREF="#Glossary">Glossary</A>
  37. </TABLE>
  38. </DL>
  39. <H4><A NAME="Requirements">Requirements</A>        </H4>
  40. <UL>
  41. <LI>Risc OS 3.1
  42. <LI>Toolbox modules
  43. <LI>Mimemap module (optional)
  44. </UL>
  45. <H4><A NAME="Features">Features</A></H4>
  46. <UL>
  47. <LI>Graphical user interface
  48. <LI><A HREF="#upload">Upload</A> directories and files
  49. <LI><A HREF="#download">Download</A> directories and files
  50. <LI>File transfer from your own programs
  51. <LI>Resume upload/download of file - if supported by server.
  52. <LI>Can connect to more than one site
  53. <LI>Sets file types from .ext when downloading (if mimemap module is present)
  54. </UL>
  55. <H4><A NAME="Logging_on">Logging on</A></H4>
  56. <P>
  57. Click on the iconbar icon and the Login <A HREF="#dialogue_box">dialogue box</A> pops up.
  58. <DL>
  59. <DD><IMG SRC="Images/UserManual/Pic4.gif" ALT="" ALIGN=MIDDLE HEIGHT=196 WIDTH=193>  <I>Login dialogue box</I>
  60. </DL>
  61. <UL>
  62. <LI><B><I><A HREF="#host">Host</A></I></B> is the name of an ftp site (e.g. <I>ftp.acorn.co.uk<B>) </B></I>you wish to connect to. If you have <A HREF="#webspace">webspace</A> this would be the address of your webspace which for freeserve is <I>uploads.webspace.freeserve.net.</I> If the host requires a different port to than the default one ftp to then it should be added to the end of the host name like this <I>ftp.acorn.co.uk:1234</I> where 1234 is the port number - note the semi colon. It is unusual to use a different port number to the default.
  63. <LI><B><I>Path</I></B> is the directory you want to go to after connecting. A / is used to separate the directories e.g. <I>/pub/acorn/</I> - Omiting the final / will result in the final object being highlighted. e.g <I>/pub/acorn/file</I> will change the directory to <I>/pub/acorn</I> and highlight <I>file.</I>
  64. <LI><B><I>User</I></B> is your user name. If you don't have a user name leave it blank and <I>anonymous</I> will be used. This may give you access to download files from certain sites. 
  65. <LI><B><I>Password</I></B> where you enter your password. If you have set the user to <I>anonymous</I> (or left it blank) then you should enter your email address here. Leaving the password blank results in a default email address being used which should work ok.
  66. <LI><B><I>Account</I></B> is probably only used for commercial sites so unless you know otherwise leave it blank.
  67. <LI><B><I>Proxy - Type </I></B>is the type of proxy server you are using there are 4 possible settings:
  68. <UL>
  69. <LI><I>0 - None</I> : You are not using a proxy, or want to disable the default proxy for this connection.
  70. <LI><I>1 - USER</I> : You are connected to a proxy which uses the USER command to connect to the Host you want to connect to.
  71. <LI><I>2 - SITE </I>: You are connected to a proxy which uses the SITE command to connect to the Host you want to connect to.
  72. <LI><I>3 - OPEN</I> : You are connected to a proxy which uses the SITE command to connect to the Host you want to connect to.
  73. </UL>
  74. <LI><B><I>Proxy -Default</I></B> sets the proxy to the default proxy
  75. <LI><B><I>Proxy - Host</I></B> is the host name of your proxy server. If you need to specify a different port number just add :port to the end of the name  eg ftp.demon.co.uk:1234
  76. <LI><B><I>Proxy - User</I></B> is used if you need to login to the proxy otherwise leave blank.
  77. <LI><B><I>Proxy - Password</I></B> is used if you need to login to the proxy otherwise leave blank.
  78. <LI><B><I>Passive</I></B> makes FTPc use the PASV command when making data connection. see <A HREF="#Passive">Passive connections</A>
  79. </UL>
  80. <H4><A NAME="Using_the_filer">Using the filer</A></H4>
  81. <DL>
  82. <DD><IMG SRC="Images/UserManual/Pic6.gif" ALT="" ALIGN=MIDDLE HEIGHT=81 WIDTH=245>  <I>Filer window</I> 
  83. </DL>
  84. <P>
  85. The filer is used in a similar way to a disc filer with drag and drop etc. however there are the following differences:
  86. <UL>
  87. <LI>Changing directories lists the new one in the same window, so to move objects to another directory highlight the files and enter the target directory in the <I>Move to</I> <A HREF="#dialogue_box">dialogue box</A>.
  88. <LI><I>New Directory</I>, <I>Change Directory</I>, <I>Rename</I> and <I>Move to</I> dialogue boxes use the remote filing system syntax. i.e <I>dir1/dir2/dir3/file</I>, <I>file.txt</I>, <I>dir1/file.html</I>
  89. </UL>
  90. <H4><A NAME="Uploading_files/directories">Uploading files/directories</A></H4>
  91. <P>
  92. When files/directories are <A HREF="#upload">uploaded</A> any  <B>/</B> is changed to a <B>.</B> so <I>Ftp/zip</I> is changed to <I>Ftp.zip </I> and a hard space is changed to a space. Any directories that don't exist are automatically created.
  93. <P>
  94. You can stop the upload process with by selecting <I>Abort</I> in the main menu which will close the connection and reconnect to the same directory. 
  95. <H4><A NAME="Downloading_files">Downloading files</A></H4>
  96. <P>
  97. <A HREF="#download">Downloaded</A> files have any <B>.</B> changed to a <B>/</B> so <I>Ftp.zip</I> will become <I>Ftp/zip</I>  and a space is changed to a hard space. Care must be taken as the file name will be truncated if the filing system where you drop the files does not support file names of that length.  You can download with a different name via the <I>SaveAs</I> <A HREF="#dialogue_box">dialogue box</A>. The new file name uses normal Risc OS filing system naming system.
  98. <H4><A NAME="Moving_around_the_host">Moving around the host</A></H4>
  99. <P>
  100. You can change directories by double clicking on a directory (<IMG SRC="Images/UserManual/Pic8.gif" ALT="" ALIGN=MIDDLE HEIGHT=18 WIDTH=18>) or entering the path in the change directory <A HREF="#dialogue_box">dialogue box</A> on the main menu. You should enter the path using the syntax of the host e.g. <I>archive/dir/dir1</I>.  Double clicking on a link (<IMG SRC="Images/UserManual/Pic3.gif" ALT="" ALIGN=MIDDLE HEIGHT=18 WIDTH=18>) will change directories if it points to a directory otherwise it will pop up a <I>Saveas</I> dialogue box.
  101. <P>
  102. To move back click <I>Adjust</I> on the close icon,select <B><I>Open parent</I></B> from the main menu or double click on <IMG SRC="Images/UserManual/Pic5.gif" ALT="" ALIGN=MIDDLE HEIGHT=18 WIDTH=18> .
  103. <P>
  104. <B>Note:</B> Files which don't have extensions are marked type Data these <I>may</I> be typed automatically after downloading by inspection of the file.
  105. <H4><A NAME="Managing_your_remote_disc_space">Managing your remote disc space</A></H4>
  106. <P>
  107. You can delete, rename, move filing system objects and create directories. When entering names in the <A HREF="#dialogue_box">dialogue boxes</A> they should be in the remote filing system syntax and not Risc OS filing system syntax, so if you want to rename <I>index.htm</I> to <I>anyfile.txt</I> you should write <I>anyfile.txt</I> in the <I>rename</I> dialogue box. 
  108. <P>
  109. To move a group of files into a subdirectory of a directory you should select the files and enter <I>directory/subdirectory</I> in the <I>Move to</I> dialogue box.
  110. <P>
  111. Clicking on <I>Change Directory</I> refreshes the listing or changes the directory to / if the current directory no longer exists.
  112. <P>
  113. Note: The <I>SaveAs</I> dialogue box is the only one which requires Risc OS filing system syntax  
  114. <H4><A NAME="Logging_off">Logging off</A></H4>
  115. <P>
  116. Just close the filer window
  117. <H4><A NAME="Newer">Newer</A></H4>
  118. <P>
  119. The <I>Newer</I> option on the <I>Option</I> menu allows you to specify the date from which files will be uploaded. eg If you set the date to when you last uploaded, only files created/modified after that date will be uploaded when a group of files/directories are dragged into the window
  120. <DL>
  121. <DD><IMG SRC="Images/UserManual/Pic7.gif" ALT="" ALIGN=MIDDLE HEIGHT=81 WIDTH=167> <I>Newer date</I>
  122. </DL>
  123. <P>
  124. The option is set by selecting <I>Set</I> and removed by unticking <I>Newer</I> on the <I>Option</I> submenu. <I>Reset</I> changes the time to the current time.
  125. <P>
  126. Please note the time/date you set is your local time and this time is compared to the time stamp of the file on your computer. You may be connected to a computer in a different time zone in which case the time appearing in the FTPc window after uploading may not be what you expect.
  127. <H4><A NAME="Status_log">Status log</A></H4>
  128. <P>
  129. When you log on to an ftp site a lot of servers send information which you may find useful. This option allows you to read this information. It is also useful for <A HREF="#Site_specific_commands">Site</A> commands which return information.
  130. <P>
  131. Selecting status log will load a list of previous commands and replies (as seen in the status bar at the bottom of the main window) into a text editor. Only the last 16kbytes of status information is recorded. 
  132. <P>
  133. Lines starting with a 3digit number are messages sent by the server others are sent to the server by FTPc.
  134. <H4><A NAME="Site_specific_commands">Site specific commands</A></H4>
  135. <P>
  136. The remote host <A HREF="#server">server</A> <I>may</I> have a set of commands available which are dependant on the site you are connected to. These include commands such as CHMOD on a unix server and SETTYPE on an acorn server. These are generally tools to manage your remote site.  The details of which are beyond this document. 
  137.  
  138. <P>
  139. There are 3 ways to enter <I>Site</I> commands in FTPc. Enter it as if from a command line, apply a list of commands to a selection and apply a list of commands to each uploaded file/directory
  140.  
  141. <P>
  142. <B>Note:</B>
  143. <UL>
  144. <LI>What commands, if any, are available are dependant on the remote host server and not this program.
  145. <LI>You can see the information returned from commands such as HELP by selecting <I>Status log...</I> on the main menu
  146. <LI>Some servers don't support SITE commands at all
  147. </UL>
  148. <H5>Applying general site commands</H5>
  149. <P>
  150. You can send a Site command by selecting <I>Site...</I> on the main menu, typing in your Site command and selecting <I>Do </I>or press <return>. The displayed directory is your current working directory.
  151. <H5>Applying a Site command to the selection</H5>
  152. <P>
  153. On the <I>Selection</I> submenu is another <I>Site</I> entry. Following the arrow allows you to enter a list of Site commands which will be applied to each selection in turn. In the text if you:
  154. <UL>
  155. <LI>Start a command with -f it will only be applied to selected files
  156. <LI>Start a command with -d it will only be applied to selected directories
  157. <LI>Use %f in a command it will be replaced by the selected file or directory
  158. <LI>Use %t in a command it will be replaced by the RISC OS file type of the selection as determined by the mimemap module. If %t is used it is only applied to files so -f is not needed.
  159. <LI>Want more than 1 command to be applied just separate them with a comma.
  160. </UL>
  161. <P>
  162. If you dont want the command applied recursively (ie applied to subdirectory contents) untick <I>Recurse</I>.
  163. <P>
  164. You can set the default text for this dialogue box on a site by site basis by adding
  165. <PRE>
  166. site_selection = "-f chmod 644 %f, -d chmod 755 %d"
  167.  
  168. </PRE>
  169. <P>
  170. to a user menu entry. (The text in inverted commas is your list of commands)
  171. <H5>Applying Site commands to all uploaded files/directories</H5>
  172. <P>
  173. The other place you can enter a <I>Site</I> command is on the <I>Options</I> submenu. This allows you to apply a series of site commands to all uploaded files/directories. You could, for example, set permissions  or set the file type on all uploaded files /directories - remember that the available commands depend on the type of server you are connected to.
  174. <P>
  175. The text you enter is the same as for <I>applying a command to the selection</I> (see above) except that the RISC OS file type is determined by the file type of the uploaded file.
  176. <P>
  177. The <I>Options</I> submenu will show a tick against the <I>Site...</I> entry when it is set/active.
  178. <P>
  179. This option is also applied to directories created with <I>New Directory.</I>
  180. <P>
  181. You can set the default text for this dialogue box on a site by site basis by adding
  182. <PRE>
  183. site_on_upload = "chmod 644 %f,settype %f %d"
  184.  
  185. </PRE>
  186. <P>
  187. to a user menu entry. (The text in inverted commas is your list of commands). If this option is included in the menu entry, the <I>Site...</I> command on the <I>Options</I> submenu will be selected (ie the option will be active)
  188. <H4><A NAME="Abort">Abort</A></H4>
  189. <P>
  190. The abort command on the main menu allows you to stop the current operation.
  191. <P>
  192. Aborting may take some time to take place. If you abort during downloading it may not happen until the download of the file is complete - this depends on the site connected to.
  193. <H4><A NAME="Reconnect/New_connection">Reconnect/New connection</A></H4>
  194. <P>
  195. If a filer window is open but it is not connected the menu will show <I>Reconnect</I>. When selected an attempt will be made to reconnect to the same site and directory that the window was connected to before the connection failed. If it wasn't previously connected it will attempt to connect again using the connection details. 
  196.  
  197. <P>
  198. If the filer window is connected the menu will show <I>New Connection</I>.  A new window will open and an attempt will be made to connect to the same host and directory as the original window. 
  199.  
  200. <P>
  201. <B>Note:</B> The two connections are not aware of each other so a change in one will not be reflected in the other. Selecting <I>Change directory</I> on the main menu will refresh a directories display if required.
  202. <H4><A NAME="Resume">Resume</A></H4>
  203. <P>
  204. You can resume the transfer of a file if the server you are connected to supports it. To use this facility you
  205. <UL>
  206. <LI>Locate the file in the FTPc viewer window
  207. <LI>Select resume on the filer menu
  208. <LI>Locate that partially transfered file on your hard disk and drag it to the viewer window
  209. <LI>Select the button will now show either <I>upload</I> or <I>download</I> depending on the direction of transfer. If the local file is larger than the remote file then it will be <I>upload</I> otherwise it will be <I>download</I>.
  210. </UL>
  211. <P>
  212. If you altered the transfer type for the original transfer you will need to alter it again before selecting the <I>upload/download</I> button. 
  213. <P>
  214. It is recommended that you do your transfers in <I>binary</I> mode as there are other issues with resuming in <I>ascii</I> mode which may cause problems.
  215. <P>
  216. If resume is supported you should be able to continue some time later (the next day for example) as long as the remote file hasn't changed in the meantime.
  217. <H4><A NAME="User_menu">User menu</A></H4>
  218. <P>
  219. User menu's can be created in a text editor and the type set to <I>FTPc</I> (077)
  220. <P>
  221. The first line of the file should be Menu and the lines following describe the menu entries. 
  222.  
  223. <H5>Example user menu</H5>
  224.  
  225. <PRE>Menu
  226. name="Acorn" value="ftp://ftp.acorn.co.uk/pub/acorn/"
  227. name="My web page" value="ftp://user:pass@uploads.demon.co.uk"
  228. name="not through proxy" value="ftp://user:pass@host/ -proxy"
  229. name="Through proxy" value="ftp://host/ -proxy 1 proxy.server"
  230. name="Demon" value="ftp://ftp.demon.co.uk//pub/acorn/" line="on"
  231. # menu item to open a directory
  232. name="Open a download directory" value="$.downloads" type="file"
  233.  
  234. # multiline example note the ; on all but the last line
  235. # of the entry (blank lines and comments are ignored)
  236. name            = "Colin's Web site";
  237. value           = "ftp://user:password@some.net.site/";
  238. # set the default Site on Upload
  239. site_on_upload  = "settype %f %t";
  240. site_selection  = "chmod 644 %f";
  241. line             = "on"
  242.  
  243. # run a program
  244. name="my program" value="$.some_program";
  245. type="file"
  246.  
  247. </PRE>
  248. <H5>Entries in detail</H5>
  249. <UL>
  250. <LI>The inverted commas in each options text entry are necessary
  251. <LI>each entry consists of:  
  252. <UL>
  253. <LI><I>name = "some text"</I> where <I>some text</I> is what you see on the menu
  254. <LI><I>value = "some text"</I> where <I>some text</I> is the ftp <A HREF="#URL_section">URL</A> you connect to when you click on that menu entry.
  255. <LI>The following options are also available
  256. <UL>
  257. <LI><I>line = "on" </I>which places a dotted line beneath that menu entry
  258. <LI><I>type = "file"</I> which will treat the <I>value </I>text<I> </I>as a file object and will run that object when the menu entry is selected. or open a directory if <I>value</I> text is a directory name.
  259. <LI><I>default = "true"</I> which sets the entry which will be selected if the iconbar icon is clicked with <I>Adjust.</I> This allows you to connect to your favourite ftp site by clicking adjust on the iconbar icon. (you could also have it open a directory for downloading)
  260. <LI><I>site_on_upload = "list of site commands"</I> see <A HREF="#Site_specific_commands">Site Specific Commands</A>
  261. <LI><I>site_selection = "list of site commands" </I>see <A HREF="#Site_specific_commands">Site Specific Commands</A>
  262. </UL>
  263. <LI>You can add a comment by starting the line with a # or |
  264. <LI>Blank lines are ignored
  265. <LI>You can use more than one line in an entry if you end all but the last line in an entry with a ;
  266. </UL>
  267. <LI>The default <I>Proxy Server</I> can be overridden by including <B>-proxy </B>at the end of the value (inside the inverted commas) - see <A HREF="#Proxies,_Gateways_and_Firewalls">Proxies, Gateways and firewalls</A>
  268. </UL>
  269.  
  270. <H5>Changing the default user menu</H5>
  271. <P>
  272. You can change the default user menu by:
  273. <UL>
  274. <LI>Modifying <I>Default</I> inside the <I>!FTPc</I> directory. Take care about putting your passwords in this file because giving away a copy of the program will result in you giving away your passwords.
  275. <LI>Creating a new menu file called <I>Default</I> and put it in <I><choices$dir>.FTPc</I> directory - <I>choices$dir</I> is <I>$.!Boot.Choices</I> if you are using the Acorn !Boot application
  276. <LI>Creating a new menu file anywhere and double click on it - you can change the menu while the program is running. 
  277. </UL>
  278. <H4><A NAME="URL_section">URL's</A></H4>
  279. <P>
  280. !FTPc supports Ants and Acorns <A HREF="#URL">URL</A> systems. This means that FTPc will be loaded and run if an ftp URL is clicked on in an application or when a <A HREF="#URI">URI</A> file containing a ftp URL is double clicked on.
  281.  
  282. <P>
  283. The general form of the ftp URL is:
  284. <P ALIGN=CENTER>
  285. <I>ftp://user:password@host:port/path</I>
  286. <P>
  287. where user,password, port and path are optional.
  288. <P>
  289. The URL could be as simple as
  290. <P ALIGN=CENTER>
  291. <I>ftp://host</I>
  292. <P>
  293. when you would be logged in anonymously to the root directory of the host
  294. <P>
  295. If the URL was
  296. <P ALIGN=CENTER>
  297. <I>ftp://user@host</I>
  298.  
  299. <P>
  300. then you would be prompted for the password. You will also be prompted for, a user if you miss that out but supply a password, and a host if you miss that out.
  301.  
  302. <P>
  303. The first / in the path is ignored so
  304.  
  305. <P ALIGN=CENTER>
  306. <I>ftp://user@host/dir1/dir2/</I>
  307.  
  308. <P>
  309. specifies a relative path <I>dir1/dir2/</I> and 
  310.  
  311. <P ALIGN=CENTER>
  312. <I>ftp://user@host//dir1/dir2/</I>
  313.  
  314. <P>
  315. specifies an absolute path <I>/dir1/dir2/.</I>
  316.  
  317. <P>
  318. If the path ends in a / then the connection will be opened at the specified directory - if the directory is not found this defaults to the root directory.
  319.  
  320. <P>
  321. If the path doesn't end in a / then the connection is opened at the directory specified up to the last / and the leaf name is highlighted in that directory if it is found.
  322.  
  323. <P>
  324. Note: Path names are case sensitive.
  325.  
  326. <P>
  327. <B>Writing URI files</B>
  328. <P>
  329. Write the URL in a text editor - eg <I>ftp://ftp.xemplar.co.uk/acorn/</I> - save it and set its file type to URI. For my web site I may write something like
  330. <P ALIGN=CENTER>
  331. <I>ftp://c-granville.freeserve.co.uk@uploads.freeserve.net/Images/docs/</I>
  332. <P>
  333. which when double clicked on will prompt me for my password before connecting to my web site and changing the directory.
  334.  
  335. <P>
  336. <B>Using URL's with !Browse</B>
  337. <P>
  338. If running a URI file results in !Browse being run, this is to do with the order in which !FTPc and !Browse are seen - shouldn't be a problem in the same directory
  339. <H4><A NAME="Passive">Passive</A> connections</H4>
  340. <P>
  341. Setting passive mode makes FTPc use the PASV command for data connections. This should only be required on certain sites or if you are masquerading through a firewall and the firewall isn't set up for non PASV ftp access. Some sites do not accept Passive connections. It does no harm to try connecting with this option set if the FTPc connection doesn't work with it unset.
  342.  
  343. <P>
  344. You can set the passive mode by ticking <I>Passive</I> on the connection dialogue box or adding <I>-passive</I> to a URL in the user menu
  345. <P>
  346. eg
  347. <P ALIGN=CENTER>
  348. <I>name="web site" value="ftp://user:password@ftp.demon.co.uk -passive"</I>
  349. <P ALIGN=CENTER>
  350. <I>name="another web site" value="ftp://ftp.hensa.co.uk/pub/acorn/ -passive"</I>
  351. <H4><A NAME="Proxies,_Gateways_and_Firewalls">Proxies, Gateways and Firewalls</A></H4>
  352. <P>
  353. This section covers access through Proxies, Gateways and Firewalls which are basically different terms for the same thing.
  354.  
  355. <P>
  356. If you have a local network where access to the internet is through a proxy server you can access ftp hosts on the internet as follows (if the server allows it):
  357.  
  358. <P>
  359. There are 3 types of proxy supported USER, OPEN and SITE these refer to the commands FTPc uses to access the host you want through the proxy server
  360. <B><I></I></B>
  361. <P>
  362. The <I>USER</I> type of proxy equivalent to the type used in versions of FTPc prior to 1.20 (except now when the proxy is set the destination host details are entered as if you were not using the proxy). 
  363. <I></I>
  364. <P>
  365. You may need a username/password for the proxy in which case I'd expect your Network administrator to tell you. He may also tell you which of the proxy types to use otherwise its a question if trial and error.
  366. <I></I>
  367. <P>
  368. If you always use a proxy you can modify the file !FTPc.!Setup so that
  369. <P>
  370. <I>ProxyServer</I> is set to your proxy address. The format of the ProxyServer option is
  371. <I></I>
  372. <P ALIGN=CENTER>
  373. <I>ProxyServer:  proxy_type_num user:password@host:port</I>
  374. <I></I>
  375. <P>
  376. So you can
  377. <I></I>
  378. <P ALIGN=CENTER>
  379. <I>ProxyServer: 1 12.23.45.67</I>
  380. <P>
  381. or
  382. <I></I>
  383. <P ALIGN=CENTER>
  384. <I>ProxyServer: 1 my.proxy.server</I>
  385. <I></I>
  386. <P>
  387. or if you need a user,password and port
  388.  
  389. <P ALIGN=CENTER>
  390. <I>ProxyServer: 1 fred:banana@my.proxy.server:1021</I>
  391.  
  392. <P>
  393. where 1021 is an oplternative port
  394.  
  395. <P>
  396. Menu entries can override the default proxy setting as follows.
  397.  
  398. <P ALIGN=CENTER>
  399. <I>name="test" value="ftp://ftp.demon.co.uk/ -proxy"</I>
  400.  
  401. <P>
  402. switches off the proxy for this menu entry.
  403.  
  404. <P ALIGN=CENTER>
  405. <I>name="test1" value="ftp://ftp.demon.co.uk/ -proxy 1 local.proxy.name"</I>
  406.  
  407. <P>
  408. connects to <I>ftp.demon.co.uk</I> through the proxy <I>local.proxy.name </I>which is a type 1 (USER) proxy
  409. <H4><A NAME="Fine_Tuning">Fine Tuning</A></H4>
  410. <P>
  411. If you are using FTPc on a Network you may be able to improve the speed slightly by setting the variables <I>FileBufferSize</I> and <I>ExtraPollEvery</I> in !FTPc.!Setup. Note this file can go in Choices:FTPc directory if you prefer - as can your default menu.
  412. <P>
  413. Some Harddiscs are slow when transfering small amounts of data but speed up considerably when transfering large amounts of data. This can also be apparent if you have ADFSBuffers set to 0. <I>FileBufferSize</I> allows you to set the size of the file buffer (in Kb) used by FTPc.  eg
  414.  
  415. <P ALIGN=CENTER>
  416. <I>FileBufferSize: 256</I>
  417.  
  418. <P>
  419. <B>Note: </B>a file buffer is created for every connection so a large buffer size may take up a lot of memory
  420.  
  421. <P>
  422. The other speed bottleneck is the frequency at which the program multitasks. This isn't a problem for modem users as multitasking will occur whilst waiting for data but on networks you seldom wait for data so you need to specify the amount of data that will be transferred before you multitask. This is done by setting <I>ExtraPollEvery</I> which specified the number of Kb to be transfered before the program multitasks. eg
  423.  
  424. <P ALIGN=CENTER>
  425. <I>ExtraPollEvery: 256</I>
  426. <I></I>
  427. <P>
  428. If you set this too high the program will hardly multitask
  429. <H4><A NAME="Problems">Problems</A></H4>
  430. <P>
  431. <B>URI's don't work</B>
  432. <P>
  433. I you don't have Ant or Acorn internet software you'll need Acorns URI module which can be found at <A HREF="http://www.acorn.com/browser/uri/URI.arc">http://www.acorn.com/browser/uri/URI.arc</A> and should be put in System:Modules.Network
  434.  
  435. <P>
  436. <B>Site created on hard disc doesn't work when downloaded</B>
  437. <P>
  438. Remember the remote site is case sensitive.
  439. <P>
  440. Don't use spaces in filenames - FTPc will change <alt><space> in a file name to spaces when uploading so your links in HTML should have spaces in them. However when testing these files on your hard disc Browse will not do this conversion. It is best to avoid spaces they were only really added for downloading.
  441. <H4><A NAME="Finer_points_of_Ftp">Finer points of Ftp</A></H4>
  442. <UL>
  443. <LI>Due to differences in filing systems it should be noted that <A HREF="#upload">uploading</A> a file loses its Risc OS file type. When <A HREF="#download">downloading</A> !FTPc will attempt to set the file type from the .<I>ext</I> of the remote file name if the mimemap module is present. Failing this it will attempt to recognise <I>arc</I>, <I>zip</I> and <I>text</I> files from their contents otherwise it sets a <I>data</I> type. It is recommended that all files put on the remote host have a .<I>ext</I> which means ending them in <I>/ext</I> in the Risc OS filer or changing the names once on the remote host.
  444. <LI>Ftp allows uploading files in either a Binary or ASCII format. ASCII format modifies the files on transfer both at this end and at the other end of the connection. Unfortunately no information is stored with the file to say what format it was saved with. I would recommend you transfer files in Binary and this is the only way to guarantee the correct transfer of non text files but !FTPc allows you to set the <I>Transfer type</I> to either Binary, Ascii or Auto where:
  445. <UL>
  446. <LI><I>Binary</I> transfers the files bit for bit
  447. <LI><I>Ascii</I> sends files in a standard text format and when loading translates them back to the Risc OS text format. This transfer method is only of use with text files.
  448. <LI><I>Auto</I> this method will use .<I>ext</I> of the file to detemine the transfer type. (requires mimemap module)
  449. </UL>
  450. </UL>
  451. <H4><A NAME="Contact">C</A>ontact</H4>
  452. <P ALIGN=CENTER>
  453. Email: <A HREF="mailto:colin@c-granville.freeserve.co.uk">colin@ftpc.iconbar.com</A>
  454. <P ALIGN=CENTER>
  455. Web site: <A HREF="http://www.c-granville.freeserve.co.uk">http://www.ftpc.iconbar.com/</A>
  456. <H4><A NAME="Glossary">Glossary</A></H4>
  457. <DL>
  458. <P><TABLE>
  459. <TR><TD WIDTH=123><I><A NAME="dialogue_box">dialogue box</A></I>
  460. <TD WIDTH=322>Window requiring typed input
  461. <TR><TD><I><A NAME="download">download</A></I>
  462. <TD>Transfer files from the remote host to your computer.
  463. <TR><TD><I><A NAME="fso">filing system objects</A></I>
  464. <TD>These are the files, directories or links which can be created on filing systems although the ftp proces does not allow for the creation of links.
  465. <TR><TD><I><A NAME="ftp">ftp</A></I>
  466. <TD>File transfer protocol - procedure by which two computers can communicate with the intention of transferring files
  467. <TR><TD><I><A NAME="host">host</A></I>
  468. <TD>Another name for a computer
  469. <TR><TD><I><A NAME="link">link</A></I>
  470. <TD>A marker in a directory which points to a file or another directory. This is a feature of the remote filing system and not available on RiscOS.
  471. <TR><TD><I>proxy</I>
  472. <TD>Server through which all requests to access remote sites go.
  473. <TR><TD><I>server</I>
  474. <TD>Program running on remote host which <I>serves</I> you your files and responds to your commands
  475. <TR><TD><I>upload</I>
  476. <TD>Transfer files from your computer to the remote host.
  477. <TR><TD><I><A NAME="URL">URL</A></I>
  478. <TD>Uniform Resource Locator - a description of where and how to find a resource on the net
  479. <TR><TD><I><A NAME="URI">URI</A></I>
  480. <TD>Uniform Resource Identifier - a description of a resource on the net. To most people it is the same as a URL but it is the file not the location
  481. <TR><TD><I><A NAME="webspace">webspace</A></I>
  482. <TD>Disc space on a host which is permanently connected to the Internet. If you have a dialup account this would be allocated to you by your service provider.
  483. </TABLE>
  484. </DL>
  485. </BODY>
  486. </HTML>
  487.