Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to post binary data #135

Closed
JoshRagem opened this issue Oct 30, 2015 · 0 comments
Closed

How to post binary data #135

JoshRagem opened this issue Oct 30, 2015 · 0 comments

Comments

@JoshRagem
Copy link

I am trying to test an endpoint that accept a POST body of binary data.
I am generating the binary data with a little erlang module:

      <request subst="true">
        <http url="/endpoint"
              method="POST"
              version="1.1"
              contents="%%binary_gen:generate%%">
          <http_header name="authorization" value="bearer %%_token%%"/>
        </http>
      </request>

ebin/binary_gen.beam compiled from:

-module(binary_gen).
-export([generate/1]).

generate({_Pid, _DynData}) ->
    <<"mybinarydata">>.

but this request doesn't seem to be run. The three requests in the session before this request do run, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant