Some of you told me that you don’t have enough time to complete the proxy lab, so the deadline is postponed to June, 10.
Also you have to take care for some special hickups if you use HTTP/1.1 because the connection is not closed when all data is transfered.
You can use the following procedure to avaid a (forever) blocking read:
- Read the header line based and parse the content-length field (if present)
- If the content-length is present, then read the given bytes and pass them to the client
- Otherwise continue reading until you read
Also keep in mind that you might need to reformat “GET http://server/path/ HTTP/1.1″ to “GET path/ HTTP/1.1\nHost: server” depending on the server implementation of HTTP/1.1.
0 Responses to “Deadline extension for proxy lab & information for HTTP/1.1”