mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-23 23:29:12 -04:00
Curl generation query params bug (Fixes #810)
This commit is contained in:
1 parent
87ccc34bad
commit
d5b75c7d32
392 files changed
+13180
-4
No files matched your search
Vendored
Executable
+11
@@ -0,0 +1,11 @@
|
||||
OkHttpClient client = new OkHttpClient();
|
||||
|
||||
MediaType mediaType = MediaType.parse("application/json");
|
||||
RequestBody body = RequestBody.create(mediaType, "{\"number\":1,\"string\":\"f\\\"oo\",\"arr\":[1,2,3],\"nested\":{\"a\":\"b\"},\"arr_mix\":[1,\"a\",{\"arr_mix_nested\":{}}],\"boolean\":false}");
|
||||
Request request = new Request.Builder()
|
||||
.url("http://mockbin.com/har")
|
||||
.post(body)
|
||||
.addHeader("content-type", "application/json")
|
||||
.build();
|
||||
|
||||
Response response = client.newCall(request).execute();
|
||||
Reference in new issue
Block a user