Skip to content

Commit

Permalink
Fix up link to http session (#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Mar 7, 2021
1 parent f89d77d commit 256a46e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/http/basics_of_http/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ <h2 id="Articles">Articles</h2>
<dd>Since HTTP/1.0, different types of content can be transmitted. This article explains how this is accomplished using the {{HTTPHeader("Content-Type")}} header and the MIME standard.</dd>
<dt><a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/Choosing_between_www_and_non-www_URLs">Choosing between www and non-www URLs</a></dt>
<dd>This article provides guidance on how to choose whether to use a www-prefixed domain or not, along with the consequences of that choice.</dd>
<dt><a href="/en-US/docs/Web/HTTP/Flow_of_an_HTTP_session">Flow of an HTTP session</a></dt>
<dd>This fundamental article describes a typical HTTP session: What happens under the hood when you click on a link in your browser.</dd>
<dt><a href="/en-US/docs/Web/HTTP/Session">Flow of an HTTP session</a></dt>
<dd>This article describes a typical HTTP session; i.e. what happens when you follow a link or load an image into a web page.</dd>
<dt><a href="/en-US/docs/Web/HTTP/Messages">HTTP Messages</a></dt>
<dd>HTTP Messages transmitted during requests or responses have a very clear structure. This introductory article describes this structure, its purpose, and its possibilities.</dd>
<dt><a href="/en-US/docs/Web/HTTP/Frame_and_message_structure_in_HTTP_2">Frame and message structure in HTTP/2</a></dt>
Expand Down
7 changes: 5 additions & 2 deletions files/en-us/web/http/session/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ <h2 id="Establishing_a_connection">Establishing a connection</h2>

<p>With TCP the default port, for an HTTP server on a computer, is port 80. Other ports can also be used, like 8000 or 8080. The URL of a page to fetch contains both the domain name, and the port number, though the latter can be omitted if it is 80. See <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web">Identifying resources on the Web</a> for more details.</p>

<div class="note"><strong>Note:</strong> The client-server model does not allow the server to send data to the client without an explicit request for it. To work around this problem, web developers use several techniques: ping the server periodically via the {{domxref("XMLHTTPRequest")}}, {{domxref("Fetch")}} APIs, using the <a href="/en-US/docs/WebSockets">WebSockets API</a>, or similar protocols.</div>
<div class="notecard note">
<h4>Note</h4>
<p>The client-server model does not allow the server to send data to the client without an explicit request for it. To work around this problem, web developers use several techniques: ping the server periodically via the {{domxref("XMLHTTPRequest")}}, {{domxref("WindowOrWorkerGlobalScope.fetch")}} APIs, using the <a href="/en-US/docs/Web/API/WebSockets_API">WebSockets API</a>, or similar protocols.</p>
</div>

<h2 id="Sending_a_client_request">Sending a client request</h2>

Expand Down Expand Up @@ -66,7 +69,7 @@ <h3 id="Request_methods">Request methods</h3>

<ul>
<li>The {{HTTPMethod("GET")}} method requests a data representation of the specified resource. Requests using <code>GET</code> should only retrieve data.</li>
<li>The {{HTTPMethod("POST")}} method sends data to a server so it may change its state. This is the method often used for <a href="/en-US/docs/Web/Guide/HTML/Forms">HTML Forms</a>.</li>
<li>The {{HTTPMethod("POST")}} method sends data to a server so it may change its state. This is the method often used for <a href="/en-US/docs/Learn/Forms">HTML Forms</a>.</li>
</ul>

<h2 id="Structure_of_a_server_response">Structure of a server response</h2>
Expand Down

0 comments on commit 256a46e

Please sign in to comment.