Possible to return 'Raw' response type from Wapplers API Action?

Hi all,

See image below:

This is the interface from reqbin.com - as you can see the 'Raw' response is much smaller than the 'Content' response. I'd like to be able to select only the 'Raw' response from Wapplers API Action. The data I need is accessible here, and massively reduces pre-processing actions I need to take.

I have limited expertise around the actual API Calls, or what Wappler uses to make them to know if this is possible.

Thanks.

Hi. Cannot be done via the native API Action step.
You will have to write a custom extension.

1 Like

Thanks @sid

Please be aware your example is unusual. In a standard uncompressed communication Raw is larger than Content. Raw includes the full HTTP headers plus the Content.

This makes me believe the response is being compressed or some other magic behind.

Please indicate which data you need from your request. I feel like you just want one of the HTTP headers or the first few bytes of a file... I think you can already access the response headers (at least on NodeJS), but they might not show in the Wappler editor. If you only want the first few bytes you might be able to use an HTTP header to specify a range of bytes you want to receive

Thanks Apple, it is a section of the body of content that I'm after.

I ended up building a custom extension to strip out everything unwanted and just leave the desired text-content. This resulted in a small enough amount of content to process in the context window.