Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Feature Request: record and match by request.body #6

Closed
davidguttman opened this Issue · 2 comments

4 participants

@davidguttman

Would be awesome if Replay could discriminate between posts to the same url with different POST data.

@Jellyfrog

+1 Really need this one

@jashmenn

Agreed, along the same lines it would be neat to match wildcards / tokens in the headers too. This would be useful in the case of mocking OAuth 1.0a requests where we set oauth_nonce to a unique value on every request.

@jashmenn jashmenn referenced this issue from a commit in jashmenn/node-replay
@jashmenn jashmenn Adds ability to match based on POST request body. fixes #6 /cc @david…
…guttman

Pro: can now match on POST request body and differentiate between matching
and non-matching bodies.

Cons:
  * Uses a fake "Body:" header to specify the body
  * Does not yet record bodies automatically
b93898c
@jashmenn jashmenn referenced this issue from a commit in jashmenn/node-replay
@jashmenn jashmenn Adds ability to match based on POST request body. fixes #6 /cc @david…
…guttman

Pro: can now match on POST request body and differentiate between matching
and non-matching bodies.

Cons:
  * Uses a fake "Body:" header to specify the body
  * Does not yet record bodies automatically
c11cd77
@assaf assaf closed this issue from a commit
@jashmenn jashmenn Adds ability to match based on POST request body. fixes #6 /cc @david…
…guttman

- The format to specify a POST body is now what one would expect: it follows
  the headers after two newlines.

- POST bodies are automatically saved when recording.

- Adds underscore as an explicit dependency.
18ff3ce
@assaf assaf closed this in 18ff3ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.