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

Need UI place to fully Copy the Request + Response #74

Closed
sprive opened this issue Oct 17, 2023 · 3 comments
Closed

Need UI place to fully Copy the Request + Response #74

sprive opened this issue Oct 17, 2023 · 3 comments

Comments

@sprive
Copy link
Contributor

sprive commented Oct 17, 2023

For evidence reasons, I want to Copy the full Request and Response, so that folks can see what I requested, include the date/time header, etc.

To the right of | Preview | Header | Request | could we have a "full/raw" that contains the full transaction?
So I could copy the whole thing in one go.

@thiagopri
Copy link

thiagopri commented Nov 9, 2023

+1, I'm also looking for a feature we can see the raw HTTP transaction like we can see under "Console" on Postman:

image

@cj-scott-prive
Copy link

If anyone's needing this to troubleshoot API issues, here's a workaround for now

  1. This all assumes you have netcat or nc installed.
  2. Open a Terminal, start netcat on a test port: netcat -lp 10839
  3. Duplicate your RestFox item (we will edit it)
  4. In the new item, change your base url to http://127.0.0.1:10839/ (plus keep rest of your URL path, whatever it was)
  5. Now "Send" in Restfox
  6. Check terminal, you should have the REAL HTTP headers sent by RestFox. See below.
  7. The Restfox request will "hang" since netcat doesn't supply a Response. You can manually cancel the request.
host: 127.0.0.1:10839
connection: keep-alive
my_restfox_header_var: header_var_value
my_restfox_header_var2: header_var_value2
content-type: application/x-www-form-urlencoded
accept: */*
accept-language: *
sec-fetch-mode: cors
user-agent: undici
accept-encoding: gzip, deflate
content-length: 0

If you wanted to see the value of vars being sent, this is quick and it works.
For something important you probably should stand up a test server (which can do the same thing, and also actually respond)

@flawiddsouza
Copy link
Owner

This is now implemented: #155.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants