Hello,
I am trying to use NodeJS to talk to the api with node-fetch. When i got to encode the JSON with encodeURIComponent() it succeeds, but there is a difference due to the api expecting the data to have +s in it, how should I generate the correct url encoded data?
Example of NodeJS Encoding with encodeURIComponent: session%22%3A%22
Form Submit: session%22%3A+%22
Hello, I am trying to use NodeJS to talk to the api with node-fetch. When i got to encode the JSON with
encodeURIComponent()
it succeeds, but there is a difference due to the api expecting the data to have +s in it, how should I generate the correct url encoded data?Example of NodeJS Encoding with encodeURIComponent:
session%22%3A%22
Form Submit:session%22%3A+%22