30 | | === Web Transfers === |
31 | | |
32 | | In this setup, there is one host acting as a web server and two hosts |
33 | | acting as clients. To test this setup follow these steps: |
34 | | * Visit the web page of the Server host (to do that press on the (i) button in Flack and then press the Visit button, alternatively open a web browser and go to the webpage !http://<pcname>.emulab.net, in the above example this would be !http://pc511.emulab.net). If the installation is successful you should see a page that is similar to this: |
35 | | |
36 | | [[Image(WebsrvIndex.png, 30%)]] |
37 | | |
38 | | * Log into pc1 and pc2 in separate windows. |
| 35 | === Command Line Web Transfers === |
| 36 | |
| 37 | Except from using a web browser you can also use command line tools for web transfers. To do this, follow these steps: |
| 38 | * Log in to `Client1`. |
| 39 | * You can download the web page using this command |
| 40 | {{{ |
| 41 | [inki@Client1 ~]$ wget http://pc511.emulab.net |
| 42 | --2012-07-06 04:23:13-- http://pc511.emulab.net/ |
| 43 | Resolving pc511.emulab.net... 155.98.38.111 |
| 44 | Connecting to pc511.emulab.net|155.98.38.111|:80... connected. |
| 45 | HTTP request sent, awaiting response... 200 OK |
| 46 | Length: 548 [text/html] |
| 47 | Saving to: “index.html.1” |
| 48 | |
| 49 | 100%[======================================>] 548 --.-K/s in 0s |
| 50 | |
| 51 | 2012-07-06 04:23:13 (7.65 MB/s) - “index.html.1” saved [548/548] |
| 52 | }}} |
| 53 | * The above command only downloads the `index.html` file from the webserver. As we are going to see later a web page might consist of multiple web pages or other objects such as pictures, videos etc. In order to force wget to download all dependencies of a page use the following options |
| 54 | {{{ |
| 55 | |
| 56 | }}} |