GET | Request a document. The body of the response will contain the document. |
HEAD | Request the header for the document. Like a GET, but but the response body will be empty. The main use is to acquire the Last-Modified header to see if a local copy of the document should be refreshed. |
POST | Send data to the server. The request body will contain the data. This is usually used to send form data. |
PUT | Send data to the server, and store it in the indicated file. It is not often used. |
1xx | Information; continuing. |
2xx | Success |
3xx | Redirection. |
4xx | Client error |
5xx | Server error |
200 | Ok |
206 | Partial Content |
301 | Moved Permanently |
400 | Bad Request |
403 | Forbidden |
404 | Not found |
500 | Internal Server Error |
501 | Not Implemented. |
Server: | 220 Welcome to our FTP server\r\n |
Client: | USER smith\r\n |
Server: | 331 Please specify password.\r\n |
Client: | PASS Some Password\r\n |
Server: | 230 Login successful\r\n |
Client: | TYPE I\r\n |
Server: | 200 Switching to binary mode\r\n |
Client: | PASV\r\n |
Server: | 227 Entering Passive Mode (10,27,0,14,75,41)\r\n |
Client: | RETR somefile.txt\r\n |
Server: | 150 Opening BINARY connection for somefile.txt\r\n |
Server: | 226 File send OK\r\n |
Client: | QUIT\r\n |
Server: | 221 Goodbye\r\n |
Rcver: | 220 mail.fred.com SMTP ready\r\n |
Sender: | HELO sender.somewhere.com\r\n |
Rcver: | 250 OK\r\n |
Sender: | MAIL FROM:<fsmith@somewhere.com>\r\n |
Rcver: | 250 OK\r\n |
Sender: | RCPT TO:<jones@fred.com>\r\n |
Rcver: | 250 OK\r\n |
Sender: | RCPT TO:<william@somewhere.com>\r\n |
Rcver: | 550 No such user here\r\n |
Sender: | RCPT TO:<sally@somewhere.com>\r\n |
Rcver: | 250 OK\r\n |
Sender: | DATA\r\n |
Rcver: | 354 Start mail input; end with <CRLF>.<CRLF>\r\n |
Sender: | Date: Thu, 7 Jan 2016 16:18:01 -0600\r\n |
From: "(Fred Smith)" <fsmith@somwhere.com>\r\n | |
To: jones@elsewhere.edu\r\n | |
Subject: Backup tapes.\r\n | |
\r\n | |
Do you still have that backup tape from Tuesday?\r\n | |
\r\n | |
- Fred\r\n | |
.\r\n | |
Rcver: | 250 OK\r\n |
Sender: | QUIT\r\n |
Rcver: | 221 Closing\r\n |
Server: | +OK POP3 server ready\r\n |
Client: | USER jones\r\n |
Server: | +OK send password\r\n |
Client: | PASS the password\r\n |
Server: | +OK maildrop locked and ready\r\n |
Client: | LIST\r\n |
Server: | +OK 2 messages (386 octets)\r\n |
1 186\r\n | |
2 200\r\n | |
.\r\n | |
Client: | RETR 1\r\n |
Server: | +OK 186 octets\r\n |
Date: Thu, 7 Jan 2016 16:18:01 -0600\r\n | |
From: "(Fred Smith)" <fsmith@somwhere.com>\r\n | |
To: jones@elsewhere.edu\r\n | |
Subject: Backup tapes.\r\n | |
\r\n | |
Do you still have that backup tape from Tuesday?\r\n | |
\r\n | |
- Fred\r\n | |
.\r\n | |
Client: | DELE 1\r\n |
Server: | +OK message 1 deleted\r\n |
Client: | QUIT\r\n |
Server: | +OK pop server closing\r\n |