Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to specify multipart HTML code so it's downloaded with 1 GET request
    text
    copied!<p>I want to render a web page using content type Multipart, but my sniffer logs always show multiple GET requests for the images on the web page.</p> <p>Here is my test code:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;multipart/form-data&lt;/title&gt; &lt;header&gt;&lt;h2&gt;Testing multipart/form-data&lt;/h2&gt;&lt;/header&gt; &lt;META HTTP-EQUIV="Content-Type" CONTENT="multipart/related; charset=ISO-8859-1"/&gt; &lt;/head&gt; &lt;body&gt; Text outside the &amp;lt;form&amp;gt; tag. &lt;form enctype="multipart/form-data" method="POST" action="/php/showPostGet.php" &gt; &lt;!-- The enctype attribute can only be used if method="post". --&gt; Text inside the &amp;lt;form&amp;gt; tag.&lt;br /&gt; &lt;input type="submit" value='TEST'/&gt;&lt;br&gt; &lt;form enctype="multipart/text/plain"&gt; Name1: &lt;input type="text" name="fname" value="ABC"&gt;&lt;br&gt; Name2: &lt;input type="text" name="lname" value="123"&gt;&lt;br&gt; &lt;/form&gt; &lt;br /&gt; &lt;img src="/images/arrow_left.jpg" alt="left"&gt; &lt;img src="/images/arrow_right.jpg" alt="right"&gt; &lt;img src="/images/arrow_up.jpg" alt="up"&gt; &lt;img src="/images/arrow_down.jpg" alt="down"&gt; &lt;br/&gt; &lt;/form&gt; &lt;/body&gt; &lt;br/&gt; &lt;/html&gt; </code></pre> <p>When I do a Refresh on this web page, I expect to see a single GET request, but i see multiple GET requests (one for the main page and one for ea image file). like this:</p> <pre><code>7 10.738337 163.64.287.173 10.235.5.146 HTTP GET /mdg/HTML/FileUpload/Andy/multipart-form-data.html HTTP/1.1 9 10.739553 10.235.5.146 163.64.287.173 HTTP HTTP/1.1 200 OK (text/html) Content-Type: text/html; charset=ISO-8859-1\r\n &lt;META HTTP-EQUIV="Content-Type" CONTENT="multipart/form-data; charset=ISO-8859-1"/&gt; 17 12.945487 163.64.287.173 10.225.57.136 HTTP GET /images/arrow_left.jpg HTTP/1.1 19 12.946704 10.225.57.136 163.64.287.173 HTTP HTTP/1.1 200 OK (JPEG JFIF image) Content-Type: image/jpeg\r\n 28 14.816313 163.64.287.173 10.225.57.136 HTTP GET /images/arrow_right.jpg HTTP/1.1 30 14.817529 10.225.57.136 163.64.287.173 HTTP HTTP/1.1 200 OK (JPEG JFIF image) Content-Type: image/jpeg\r\n 41 17.196125 163.64.287.173 10.225.57.136 HTTP GET /images/arrow_up.jpg HTTP/1.1 43 17.197342 10.235.5.146 163.64.287.173 HTTP HTTP/1.1 200 OK (JPEG JFIF image) Content-Type: image/jpeg\r\n 51 19.060141 163.64.287.173 10.225.57.136 HTTP GET /images/arrow_down.jpg HTTP/1.1 53 19.061358 10.225.57.136 163.64.287.173 HTTP HTTP/1.1 200 OK (JPEG JFIF image) Content-Type: image/jpeg\r\n </code></pre> <p>I expected to see 1 get request followed by several OK/CONTINUATION messages (with 'boundary=' data). Something like this (from another web site):</p> <p><code> 901 15:36:40.100491 10.277.7.10 72.253.197.19 HTTP GET /app/WT/default.aspx?vtbl=1&amp;debugds=320&amp;vzmw3=vzmw3 HTTP/1.1</p> <pre>903 15:36:40.317813 72.253.197.19 10.277.7.10 HTTP HTTP/1.1 200 OK Content-Type: multipart/mixed; boundary=next.part.8412f441-e4ea-4554-8400-9a003df2f78f\r\n Content-Type: multipart/mixed; boundary=next.part.8412f441-e4ea-4554-8400-9a003df2f78f\r\n MIME Multipart Media Encapsulation, Type: multipart/mixed, Boundary: "next.part.8412f441-e4ea-4554-8400-9a003df2f78f" First boundary: --next.part.8412f441-e4ea-4554-8400-9a003df2f78f\r\n Content-Type: text/html; charset=utf-8\r\n 905 15:36:40.319315 63.64.187.229 97.253.137.46 HTTP HTTP/1.1 200 OK Content-Type: multipart/mixed; boundary=next.part.8412f441-e4ea-4554-8400-9a003df2f78f\r\n Content-Type: multipart/mixed; boundary=next.part.8412f441-e4ea-4554-8400-9a003df2f78f\r\n 906 15:36:40.320116 72.253.197.19 10.247.7.10 HTTP Continuation </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload