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

Add possibility to see actual raw body in scripts (req.body.raw) #3992

Open
1 task done
emirozmen07 opened this issue Feb 11, 2025 · 0 comments
Open
1 task done

Add possibility to see actual raw body in scripts (req.body.raw) #3992

emirozmen07 opened this issue Feb 11, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@emirozmen07
Copy link

emirozmen07 commented Feb 11, 2025

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

Describe the feature you want to add

In another application (Postman) you can grab the exact body of the request by doing the operation below. But in bruno this is not possible.

This is causing issues for me because the actual "rawBody" sent to API includes characters such as "\n" automatically but I can not access to same data in the bruno pre-request script. I need to access to same data both in API and Bruno to do some operations.

Mockups or Images of the feature

For example in Postman:

    const rawBody = pm.request.body ? pm.request.body.raw : '';
    console.log('rawbody',rawBody)
    data = rawBody ? JSON.stringify(rawBody) : rawBody;
    console.log('data',data)

Will return:
Image

But in bruno I could not find a way to do the same operation.

@emirozmen07 emirozmen07 added the enhancement New feature or request label Feb 11, 2025
@emirozmen07 emirozmen07 changed the title Add req.body.raw Add possibility to see actual raw body in scripts (req.body.raw) Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant