post request with multiple header information using fuel2019 Community Moderator ElectionHow to send a PUT/DELETE request in jQuery?How to use java.net.URLConnection to fire and handle HTTP requestsHow to make HTTP POST web requestHow is an HTTP POST request made in node.js?Make POST request from Mule ESBHTTP post header is incorrectParsing HTTP Request in JavaRetrieving body of json Object of an http Request C#Laravel 5 Http Request Curl JSON FailedHow to POST multipart/form-data using Fuel for Kotlin?
What can I do if someone tampers with my SSH public key?
Error in TransformedField
Paper published similar to PhD thesis
Where do you go through passport control when transiting through another Schengen airport on your way out of the Schengen area?
Can a Mimic (container form) actually hold loot?
Affine transformation of circular arc in 3D
Giving a talk in my old university, how prominently should I tell students my salary?
Is being socially reclusive okay for a graduate student?
Do natural melee weapons (from racial traits) trigger Improved Divine Smite?
Iron deposits mined from under the city
Naming Characters after Friends/Family
What does it mean when I add a new variable to my linear model and the R^2 stays the same?
Was it really inappropriate to write a pull request for the company I interviewed with?
Is there a math equivalent to the conditional ternary operator?
Problems with rounding giving too many digits
What is the purpose of a disclaimer like "this is not legal advice"?
Quitting employee has privileged access to critical information
Deal the cards to the players
Can you run a ground wire from stove directly to ground pole in the ground
PTIJ: Mouthful of Mitzvos
Who is at the mall?
Is "cogitate" an appropriate word for this?
Are there other characters in the Star Wars universe who had damaged bodies and needed to wear an outfit like Darth Vader?
Can a space-faring robot still function over a billion years?
post request with multiple header information using fuel
2019 Community Moderator ElectionHow to send a PUT/DELETE request in jQuery?How to use java.net.URLConnection to fire and handle HTTP requestsHow to make HTTP POST web requestHow is an HTTP POST request made in node.js?Make POST request from Mule ESBHTTP post header is incorrectParsing HTTP Request in JavaRetrieving body of json Object of an http Request C#Laravel 5 Http Request Curl JSON FailedHow to POST multipart/form-data using Fuel for Kotlin?
I try to send a post request written in kotlin and b using the fuel framework (https://github.com/kittinunf/Fuel). However, I need to send a json body with the post request as well as basic authentication credentials.
This is my current attempt which always leasds to an HTTP Exception 400. So I have the feeling there is something wrong with the way I send the body. I just cannot figure out what it is:
val myJsonBody = " n" +
" "jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",n" +
" "startAt": 0,n" +
" "maxResults": 300,n" +
" "fields": [n" +
" "issuetype",n" +
" "created",n" +
" "status",n" +
" "summary",n" +
" "customfield_10002",n" +
" "customfield_10003",n" +
" "customfield_11201",n" +
" "customfield_10006"n" +
" ]n" +
" "
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.header(user,password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
The functioning cURL request generated by postman looks like this:
curl -X POST
https://atc.mywebpage.net/jira/rest/api/2/search
-H 'Content-Type: application/json'
-H 'Postman-Token: xxxxxxxxxxxxxxxxxxxxxxx'
-H 'cache-control: no-cache'
-d '
"jql": "component = LOLO AND fixVersion = '''18/3 Patch-2'''",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
'
kotlin httprequest
add a comment |
I try to send a post request written in kotlin and b using the fuel framework (https://github.com/kittinunf/Fuel). However, I need to send a json body with the post request as well as basic authentication credentials.
This is my current attempt which always leasds to an HTTP Exception 400. So I have the feeling there is something wrong with the way I send the body. I just cannot figure out what it is:
val myJsonBody = " n" +
" "jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",n" +
" "startAt": 0,n" +
" "maxResults": 300,n" +
" "fields": [n" +
" "issuetype",n" +
" "created",n" +
" "status",n" +
" "summary",n" +
" "customfield_10002",n" +
" "customfield_10003",n" +
" "customfield_11201",n" +
" "customfield_10006"n" +
" ]n" +
" "
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.header(user,password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
The functioning cURL request generated by postman looks like this:
curl -X POST
https://atc.mywebpage.net/jira/rest/api/2/search
-H 'Content-Type: application/json'
-H 'Postman-Token: xxxxxxxxxxxxxxxxxxxxxxx'
-H 'cache-control: no-cache'
-d '
"jql": "component = LOLO AND fixVersion = '''18/3 Patch-2'''",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
'
kotlin httprequest
You should use.body(json.toString())
to send this as string I believe.
– shkschneider
2 days ago
did you try executing the same request with other tools (e.g., cmd line, postman) to verify whether it is correct? Btw in this case probably a raw string (enclosed in"""
) would be more readable
– user2340612
2 days ago
yes, I am using postman and the post request just works fine.
– Jake2Finn
yesterday
The .toString() solution is not working.
– Jake2Finn
yesterday
add a comment |
I try to send a post request written in kotlin and b using the fuel framework (https://github.com/kittinunf/Fuel). However, I need to send a json body with the post request as well as basic authentication credentials.
This is my current attempt which always leasds to an HTTP Exception 400. So I have the feeling there is something wrong with the way I send the body. I just cannot figure out what it is:
val myJsonBody = " n" +
" "jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",n" +
" "startAt": 0,n" +
" "maxResults": 300,n" +
" "fields": [n" +
" "issuetype",n" +
" "created",n" +
" "status",n" +
" "summary",n" +
" "customfield_10002",n" +
" "customfield_10003",n" +
" "customfield_11201",n" +
" "customfield_10006"n" +
" ]n" +
" "
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.header(user,password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
The functioning cURL request generated by postman looks like this:
curl -X POST
https://atc.mywebpage.net/jira/rest/api/2/search
-H 'Content-Type: application/json'
-H 'Postman-Token: xxxxxxxxxxxxxxxxxxxxxxx'
-H 'cache-control: no-cache'
-d '
"jql": "component = LOLO AND fixVersion = '''18/3 Patch-2'''",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
'
kotlin httprequest
I try to send a post request written in kotlin and b using the fuel framework (https://github.com/kittinunf/Fuel). However, I need to send a json body with the post request as well as basic authentication credentials.
This is my current attempt which always leasds to an HTTP Exception 400. So I have the feeling there is something wrong with the way I send the body. I just cannot figure out what it is:
val myJsonBody = " n" +
" "jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",n" +
" "startAt": 0,n" +
" "maxResults": 300,n" +
" "fields": [n" +
" "issuetype",n" +
" "created",n" +
" "status",n" +
" "summary",n" +
" "customfield_10002",n" +
" "customfield_10003",n" +
" "customfield_11201",n" +
" "customfield_10006"n" +
" ]n" +
" "
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.header(user,password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
The functioning cURL request generated by postman looks like this:
curl -X POST
https://atc.mywebpage.net/jira/rest/api/2/search
-H 'Content-Type: application/json'
-H 'Postman-Token: xxxxxxxxxxxxxxxxxxxxxxx'
-H 'cache-control: no-cache'
-d '
"jql": "component = LOLO AND fixVersion = '''18/3 Patch-2'''",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
'
kotlin httprequest
kotlin httprequest
edited yesterday
Jake2Finn
asked 2 days ago
Jake2FinnJake2Finn
16511
16511
You should use.body(json.toString())
to send this as string I believe.
– shkschneider
2 days ago
did you try executing the same request with other tools (e.g., cmd line, postman) to verify whether it is correct? Btw in this case probably a raw string (enclosed in"""
) would be more readable
– user2340612
2 days ago
yes, I am using postman and the post request just works fine.
– Jake2Finn
yesterday
The .toString() solution is not working.
– Jake2Finn
yesterday
add a comment |
You should use.body(json.toString())
to send this as string I believe.
– shkschneider
2 days ago
did you try executing the same request with other tools (e.g., cmd line, postman) to verify whether it is correct? Btw in this case probably a raw string (enclosed in"""
) would be more readable
– user2340612
2 days ago
yes, I am using postman and the post request just works fine.
– Jake2Finn
yesterday
The .toString() solution is not working.
– Jake2Finn
yesterday
You should use
.body(json.toString())
to send this as string I believe.– shkschneider
2 days ago
You should use
.body(json.toString())
to send this as string I believe.– shkschneider
2 days ago
did you try executing the same request with other tools (e.g., cmd line, postman) to verify whether it is correct? Btw in this case probably a raw string (enclosed in
"""
) would be more readable– user2340612
2 days ago
did you try executing the same request with other tools (e.g., cmd line, postman) to verify whether it is correct? Btw in this case probably a raw string (enclosed in
"""
) would be more readable– user2340612
2 days ago
yes, I am using postman and the post request just works fine.
– Jake2Finn
yesterday
yes, I am using postman and the post request just works fine.
– Jake2Finn
yesterday
The .toString() solution is not working.
– Jake2Finn
yesterday
The .toString() solution is not working.
– Jake2Finn
yesterday
add a comment |
2 Answers
2
active
oldest
votes
Try executing that request manually. Use fiddler/postman/your preferred HTTP client. Maybe you're missing something in the body or headers?
Also I recommend a raw string literal. It's much more readable.
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.header(user,password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
In Postman, the post request works fine. All I have to add to the request is - of course - the request url, the body which is exactly the raw json string I added to my Kotlin project and basic authentication.
– Jake2Finn
yesterday
add a comment |
I played around a little and I found out that I had to use authentication().basic() to access properly and not header(). This is the result:
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val user = "myUser"
val password = "myPassword"
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.authentication().basic(user, password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
}
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55002709%2fpost-request-with-multiple-header-information-using-fuel%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try executing that request manually. Use fiddler/postman/your preferred HTTP client. Maybe you're missing something in the body or headers?
Also I recommend a raw string literal. It's much more readable.
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.header(user,password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
In Postman, the post request works fine. All I have to add to the request is - of course - the request url, the body which is exactly the raw json string I added to my Kotlin project and basic authentication.
– Jake2Finn
yesterday
add a comment |
Try executing that request manually. Use fiddler/postman/your preferred HTTP client. Maybe you're missing something in the body or headers?
Also I recommend a raw string literal. It's much more readable.
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.header(user,password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
In Postman, the post request works fine. All I have to add to the request is - of course - the request url, the body which is exactly the raw json string I added to my Kotlin project and basic authentication.
– Jake2Finn
yesterday
add a comment |
Try executing that request manually. Use fiddler/postman/your preferred HTTP client. Maybe you're missing something in the body or headers?
Also I recommend a raw string literal. It's much more readable.
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.header(user,password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
Try executing that request manually. Use fiddler/postman/your preferred HTTP client. Maybe you're missing something in the body or headers?
Also I recommend a raw string literal. It's much more readable.
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.header(user,password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
answered 2 days ago
user8159708user8159708
1,12449
1,12449
In Postman, the post request works fine. All I have to add to the request is - of course - the request url, the body which is exactly the raw json string I added to my Kotlin project and basic authentication.
– Jake2Finn
yesterday
add a comment |
In Postman, the post request works fine. All I have to add to the request is - of course - the request url, the body which is exactly the raw json string I added to my Kotlin project and basic authentication.
– Jake2Finn
yesterday
In Postman, the post request works fine. All I have to add to the request is - of course - the request url, the body which is exactly the raw json string I added to my Kotlin project and basic authentication.
– Jake2Finn
yesterday
In Postman, the post request works fine. All I have to add to the request is - of course - the request url, the body which is exactly the raw json string I added to my Kotlin project and basic authentication.
– Jake2Finn
yesterday
add a comment |
I played around a little and I found out that I had to use authentication().basic() to access properly and not header(). This is the result:
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val user = "myUser"
val password = "myPassword"
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.authentication().basic(user, password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
}
add a comment |
I played around a little and I found out that I had to use authentication().basic() to access properly and not header(). This is the result:
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val user = "myUser"
val password = "myPassword"
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.authentication().basic(user, password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
}
add a comment |
I played around a little and I found out that I had to use authentication().basic() to access properly and not header(). This is the result:
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val user = "myUser"
val password = "myPassword"
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.authentication().basic(user, password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
}
I played around a little and I found out that I had to use authentication().basic() to access properly and not header(). This is the result:
val confluenceUrl = "https://atc.mywebpage.net/jira/rest/api/2/search"
val user = "myUser"
val password = "myPassword"
val myJsonBody = """
"jql": "component = LOLO AND fixVersion = '18/3 Patch-2'",
"startAt": 0,
"maxResults": 300,
"fields": [
"issuetype",
"created",
"status",
"summary",
"customfield_10002",
"customfield_10003",
"customfield_11201",
"customfield_10006"
]
""".trimIndent()
val (ignoredRequest, ignoredResponse, result) =
Fuel.post(confluenceUrl)
.header("Content-Type", "application/json")
.authentication().basic(user, password)
.jsonBody(myJsonBody)
.responseString ()
result.fold( print("success: $result") , print("failure: $result") )
}
answered yesterday
Jake2FinnJake2Finn
16511
16511
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55002709%2fpost-request-with-multiple-header-information-using-fuel%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You should use
.body(json.toString())
to send this as string I believe.– shkschneider
2 days ago
did you try executing the same request with other tools (e.g., cmd line, postman) to verify whether it is correct? Btw in this case probably a raw string (enclosed in
"""
) would be more readable– user2340612
2 days ago
yes, I am using postman and the post request just works fine.
– Jake2Finn
yesterday
The .toString() solution is not working.
– Jake2Finn
yesterday