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 send a POST request of base64 string from body. #7622

Closed
anishvarma01 opened this issue Nov 11, 2019 · 1 comment
Closed

How to send a POST request of base64 string from body. #7622

anishvarma01 opened this issue Nov 11, 2019 · 1 comment
Assignees
Labels
product/runtime support How do I ... ? Can I ... ?

Comments

@anishvarma01
Copy link

I have a fiddler post request. In that the body is base64 string and there is an header "Fiddler-Encoding: base64".

Can i make same request through postman? I tried it but i not able to decode the string. Does postman has this feature like fiddler?

@anishvarma01 anishvarma01 changed the title Is there a way to send base64 string from body. How to send a POST request of base64 string from body. Nov 11, 2019
@shamasis shamasis added product/runtime support How do I ... ? Can I ... ? labels Nov 12, 2019
@vvs11 vvs11 added this to Pending triage in Runtime Triage and Development Mar 12, 2020
@vikiCoder
Copy link

Hi @anishvarma01,

We do not support changing request body through scripts at the moment. A possible workaround for your use case is to use environment variables and keep base64 request body in the a variable. Then decode the base64 string from the environment in the pre-request script and use it as the request body. See the below screenshot for an example:

Request body:
image

Pre-request script:
image

Environment variables:
image

Closing this issue for now. If you are interested in mutating request body from pre-request script, we are tracking it in #4808.

Runtime Triage and Development automation moved this from Pending triage to Ready Mar 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product/runtime support How do I ... ? Can I ... ?
Development

No branches or pull requests

3 participants