Politechnika Świętokrzyska
Laboratorium projektowania aplikacji internetowych
Temat:
Grupa 312A: Data wykonania ćwiczenia:
Protokoły
Aukasz Gos 16.11.2010r
Kamil Kasprzyk godz. 13.30 15.20
1. Połączyć się telnetem z serwerem WWW:
//proba pobrania indem.html
GET /indem.html HTTP/1.1
Host: www.student.pl
HTTP/1.1 404 Not Found
Date: Tue, 16 Nov 2010 12:49:16 GMT
Server: Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.6
Content-Length: 18
Content-Type: text/html; charset=iso-8859-1
Brak podanej strony
//pobranie strony zabezpieczonej haslem
HTTP/1.1 401 Authorization Required
Date: Tue, 16 Nov 2010 13:01:53 GMT
Server: Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.6
WWW-Authenticate: Basic realm="Haslo"
Content-Length: 401
Content-Type: text/html; charset=iso-8859-1
401 Authorization Required Authorization Required
This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.
//pobranie sekcji head
HEAD /index.html HTTP/1.1
Host: www.student.pl
HTTP/1.1 200 OK
Date: Tue, 16 Nov 2010 13:06:59 GMT
Server: Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.6
Last-Modified: Tue, 19 Oct 2010 11:49:42 GMT
ETag: "3000000000030-9-492f6e36e4cbf"
Accept-Ranges: bytes
Content-Length: 9
Content-Type: text/html
//pobranie daty ważności strony
GET /index.html HTTP/1.1
Host: www.student.pl
If-Modified-Since: 2010/11/16
HTTP/1.1 200 OK
Date: Tue, 16 Nov 2010 13:14:16 GMT
Server: Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.6
Last-Modified: Tue, 19 Oct 2010 11:49:42 GMT
ETag: "3000000000030-9-492f6e36e4cbf"
Accept-Ranges: bytes
Content-Length: 9
Content-Type: text/html
student
//pobranie gif
HEAD /a.gif HTTP/1.1
Host: www.student.pl
HTTP/1.1 200 OK
Date: Tue, 16 Nov 2010 13:19:10 GMT
Server: Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.6
Last-Modified: Sat, 20 Nov 2004 12:16:26 GMT
ETag: "50000000000b8-f6-3e94f97a51a80"
Accept-Ranges: bytes
Content-Length: 246
Content-Type: image/gif
//tresc obrazka
GET /a.gif HTTP/1.1
Host: www.student.pl
HTTP/1.1 200 OK
Date: Tue, 16 Nov 2010 13:20:53 GMT
Server: Apache/2.2.8 (Win32) mod_ssl/2.2.8 OpenSSL/0.9.8g PHP/5.2.6
Last-Modified: Sat, 20 Nov 2004 12:16:26 GMT
ETag: "50000000000b8-f6-3e94f97a51a80"
Accept-Ranges: bytes
Content-Length: 246
Content-Type: image/gif
GIF89aŁŁ333!cNThis art is in the public domain. Kevin Hughes, kevinh@eit.com, September
1995!o,i8_zń0
@d{mh
2. Połączyć się telnetem z serwerem poczty:
//wysyłanie maila
220 SMTP on InetServer (3.2.3) ready.
HELO 10.0.0.103
250 HELO
MAIL FROM: adres@poczta.pl
250 OK
RCPT TO: adres@poczta.pl
250 OK
DATA
354 Enter your data, end with
.
5jk
.
250 OK
QUIT
221 Closing connection
//odczytanie listu
+OK POP3 on InetServer (3.2.3) ready.
USER pai07
+OK user accepted
PASS
-ERR unknown command
-ERR unknown command
-ERR unknown command
sdf
-ERR unknown command
pai07
-ERR unknown command
PASS pai07
+OK welcome
STAT
+OK 1 39
LIST
+OK 1 39
1 39
.
RETR 1
+OK 39 octets
To jest fajna i tajna wiadomosc.
.
//usunięcie wiadomości
+OK POP3 on InetServer (3.2.3) ready.
USER pai07
+OK user accepted
PASS pai07
+OK welcome
DELE 1
+OK Message deleted
Wyszukiwarka
Podobne podstrony:
Sprawozdanie lab2 Szewczak Piotr
sw sprawozdanie lab2 v5
sw sprawozdanie lab2 v2
sw sprawozdanie lab2 v4
sw sprawozdanie lab2 v1
sw sprawozdanie lab2 v1
tm sprawozdanie lab2 v2
sw sprawozdanie lab2 v3
tm sprawozdanie lab2 v1
Mechanika płynów sprawozdanie z lab2
lab2 sprawozdanie
sprawozdanie felixa2
więcej podobnych podstron