edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Kevin Carhart <kevin@carhart.net>
To: Adam Thompson <arthompson1990@gmail.com>
Cc: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] XHR
Date: Mon, 21 Dec 2015 20:13:04 -0800 (PST)	[thread overview]
Message-ID: <alpine.LRH.2.03.1512212007090.19424@carhart.net> (raw)
In-Reply-To: <alpine.LRH.2.03.1512211937240.19424@carhart.net>



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>.....



  reply	other threads:[~2015-12-22  4:12 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-17 13:46 [Edbrowse-dev] Non-technical rant Chuck Hallenbeck
2015-12-17 14:52 ` Chris Brannon
2015-12-17 15:31   ` Karl Dahlke
2015-12-17 16:26     ` Chris Brannon
2015-12-17 20:56       ` [Edbrowse-dev] alt.ensign.crusher.die.die.die Kevin Carhart
2015-12-18 14:12         ` Adam Thompson
2015-12-19 23:40           ` [Edbrowse-dev] XHR Kevin Carhart
2015-12-21 23:29             ` Adam Thompson
2015-12-22  3:44               ` Kevin Carhart
2015-12-22  4:13                 ` Kevin Carhart [this message]
2015-12-22 15:28                 ` Karl Dahlke
2015-12-22 20:04                   ` Kevin Carhart
2015-12-23 18:52                     ` Adam Thompson
2015-12-17 21:00 ` [Edbrowse-dev] Non-technical rant Kevin Carhart
2015-12-17 21:38   ` [Edbrowse-dev] masking of passwords Kevin Carhart
2015-12-17 21:55     ` Chris Brannon
2015-12-18 13:58       ` Adam Thompson
2015-12-18 15:13         ` Karl Dahlke
2015-12-19 23:55           ` Kevin Carhart
2015-12-17 22:13     ` Karl Dahlke
2015-12-18  0:00       ` Kevin Carhart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LRH.2.03.1512212007090.19424@carhart.net \
    --to=kevin@carhart.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    --cc=arthompson1990@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).