






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Electronic Commerce (WS-02/03) 3-
3.1 Client / Server Architectures and the Internet 3.2 Internet Protocols and Internet Infrastructure HTTP, Security for HTTP, Web Servers 3.3 Multi-Tier Architectures 3.4 Platform Choices and Connectivity Options
Electronic Commerce (WS-02/03) 3-
HTTP: Hypertext Transfer Protocol. Purpose: Accessing resources on the internet (web documents). Clients (browsers) issue requests for resources to a server, the server sends the requested document back to the client as a response. Current version is HTTP/1.1. Purpose Purpose Purpose
**1. Infrastructure
Electronic Commerce (WS-02/03) 3-
Example Protocol Host Path In the example the port is omitted; it can be deduced from the protocol.
Transmission Control Protocol (TCP) Application Layer Network Layer Internet Protocol (IP) Internet Layer Internet Protocols Network^ ATM^ Ethernet^ others Application Protocols HTTP FTP others Resource Addressing^ URLs address most (all) protocols
Electronic Commerce (WS-02/03) 3-
These extensions are commonly used, but are not part of a URL by definition: o Fragment A fragment indicates that after the specified resource is retrieved, the application is specifically interested in a part of the resource that is marked-up (tagged) by the fragment‘s name. The meaning of a fragment is resource-specific. Example: http://www.sts.tu-harburg.de/teaching/entry.html #top o Parameters Parameters are used to transmit – a limited amount (max. 4 KBytes) of - information from the client to the server. Example: http://www.register.com ?firstname=patrick&lastname=hupe
Electronic Commerce (WS-02/03) 3-
HTTP requests and response follow the HTTP message format. Generic HTTP message format: generic-message ::= start-line ( message-header )* <CR/LF> ( message-body )? start-line ::= request-line | status-line message-header ::= general-header | entity-header | request-header | response-header o Entity-headers contain meta-information describing the entity (content). o Request-headers may only appear in requests. o Response-headers may only appear in responses. For examples of HTTP Messages (GET and POST requests) see slides 3.51 and 3.53, 3.54. Notation: * = repetition (0..n)? = option (0 or 1) | = choice (a or b)
Electronic Commerce (WS-02/03) 3-
request ::= request-line ( general-header | entity-header | request-header )* <CR/LF> ( message-body )? request-line ::= request-method
Electronic Commerce (WS-02/03) 3-
Connection: Keep-Alive User-Agent: Mozilla/4.7 [de] (WinNT; I) Host: localhost: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, / Accept-Encoding: gzip Accept-Language: de Accept-Charset: iso-8859-1,*,utf- Transferred request information Request Line Headers (see slide 3.50) simplest URL-case: /