From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out.smtp-auth.no-ip.com (out.smtp-auth.no-ip.com [8.23.224.60]) by hurricane.the-brannons.com (Postfix) with ESMTPS id AC5FA77C83 for ; Mon, 21 Dec 2015 20:12:57 -0800 (PST) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 4F97B400B84; Mon, 21 Dec 2015 20:13:05 -0800 (PST) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id tBM4D4gT029087; Mon, 21 Dec 2015 20:13:04 -0800 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id tBM4D4rZ029084; Mon, 21 Dec 2015 20:13:04 -0800 Date: Mon, 21 Dec 2015 20:13:04 -0800 (PST) From: Kevin Carhart To: Adam Thompson cc: Edbrowse-dev@lists.the-brannons.com In-Reply-To: Message-ID: References: <20151217134608.GA4216@acer.attlocal.net> <87vb7xi0vd.fsf@mushroom.localdomain> <20151117103105.eklhad@comcast.net> <87r3ilhwij.fsf@mushroom.localdomain> <20151218141232.GB2770@122oven.adamthompson.me.uk> <20151221232942.GA5604@hob.adamthompson.me.uk> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: Re: [Edbrowse-dev] XHR X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Dec 2015 04:12:57 -0000 I also meant to accompany that code with a sample transcript. I'm instantiating the XMLHttpRequest prototype. The sample has no particular connection to the fastmail work, I just used fastmail.com as an example URL that demonstrates that a real HTTP action was undertaken. You can tell because real response contents are returned. > jdb > var client = new XMLHttpRequest > var df = document.forms[0] > var payload = form_serialize(df) > ok(client) < headers,responseHeaders,aborted > client.method = "POST" < POST > client.url = df.action < https://classic.fastmail.com/html/?u=4c8b41a9 > client.send(payload) < * Adding handle: conn: 0x10b47a0... [a variety of detail is echoed] > ok(client) < headers,responseHeaders,aborted,method,url,responseText,readyState > ok(client.responseHeaders) < HTTP/1.1 403 Forbidden,Server,Date,Content-Type,Content-Length,Connection,X-Request-Id... > client.responseText < .....