Server logs showing GET request right before POST request
<p>When I look through my server logs, I see periodic GET requests coming in instantaneously before the POST request from the same ip with the same referrer.  I expect the POST, but not the GET. Has anyone seen this before?</p>

<p>I'm dynamically creating a form inside of an iframe with javascript in order to send the POST request to a server.  I can't use Ajax because the POST request is to a different domain.  This works on about 95% of the time.  5% of the time I get a GET request just before the POST.  It seems to happen repeatedly from the same ip.  </p>

<p>Here is the server log:</p>

<pre><code>10.160.42.113 - - [16/Sep/2010:04:33:08 +0000] "GET /pixel HTTP/1.1" 200 2 "url" "Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729)"
10.160.42.113 - - [16/Sep/2010:04:33:08 +0000] "POST /pixel HTTP/1.1" 200 2 "url" "Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729)"
</code></pre>

<p>Here is the js code:</p>

<pre><code>var iframe = document.createElement("iframe");
iframe.height = "0";
iframe.width = "0";
iframe.frameBorder = "0";
document.getElementById('canvas').appendChild(iframe);


var iframeDocument = iframe.contentDocument || iframe.contentWindow.document || iframe.document;
iframeDocument.open();
iframeDocument.close();


var form = document.createElement("form");
form.setAttribute("action", 'url');
form.setAttribute("method", 'POST');

for (var key in params) {
    var hiddenField = document.createElement("input");
    hiddenField.setAttribute("type", "hidden");
    hiddenField.setAttribute("name", key);
    hiddenField.setAttribute("value", params[key]);

    form.appendChild(hiddenField);
}

iframeDocument.body.appendChild(form);
form.submit();
</code></pre>
