zerocode
zerocode copied to clipboard
Sending raw string in urlencoded data field #question
Hello,
I have the following data to send:
"name": "post_message",
"url": "some/url",
"operation": "POST",
"request": {
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"body": {
"id": "84844",
"data": "SOME*DATA\nMORE*DATA",
}
}
When I follow TCP stream, in request I get encoded data "data=SOME*DATA%5CnMORE&id=84844".
- Is there any way to send raw data in this field without encoding?
- Is there any way to preserve parameter ordering (id&data instead of data&id)?
Hello @automatedbegginer ,
"data=SOME*DATA%5CnMORE&id=84844"
I believe the Apache Http client encodes this, the framework doesn't encode.
@arunvelusamyd , can you put some thought to this, please? You have dealt with quite a lot of realtime use cases(those definitely might help). Appreciate your help mate!
@automatedbegginer I think when you use x-www-form-urlencoded the body is automatically encoded as in case of url. maybe try application/json ?
@authorjapps is this issue still relevant?
Thanks @sparrowV . @automatedbegginer, can you reply ?
Hi, i needed to use x-www-form-urlencoded to simulate messages between two apps. They send eachother x-www-form-urlencoded data, not json. I dont know any more details, since the issue is few months old :)
Looks like a Duplicate of https://github.com/authorjapps/zerocode/issues/141
Reopen if it's not the case.