I tried an example on http://www.captain.at/howto-ajax-form-post-request.php for sending a POST form. When I run the example on that specific page, everything works well. Also in Wireshark I see the POST packet passing by.
But I'm getting errors when I copy the code to a local html file, and try to run the post.html example from my own pc.
I enter the line "alert('There was a problem with the request.'); " because my http_request.status = 0 (I saw with firebug).
And when I capture the data with wireshark, from my local post.html file, instead of a POST message, I see an OPTIONS packet passing by! Hereby I send you the wireshark capture file (and a screen dump for those who don't have wireshark installed).
I am using Ubuntu 10.04 with Firefox 3.6.8. Does anyone have an idea what I am doing wrong?