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

< <!DOCTYPE html>.....


_______________________________________________
Edbrowse-dev mailing list
[email protected]
http://lists.the-brannons.com/mailman/listinfo/edbrowse-dev

Reply via email to