postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

HLS playlists response unreadeable #8305

Open discplayer opened 4 years ago

discplayer commented 4 years ago

When requesting an HLS playlist (*.m3u8), the content-type response header may be audio/mpegurl. this is a valid and supported content-type by Apple. The issue is with the way Postman handles the formatting.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_adv_example_hevc/a1/prog_index.m3u8
  2. Click on Headers
  3. Verify Content-Type
  4. Go to Body and look at response. Although it is text, it is being treated as "audio".

Expected behavior I would expect it to present has a typcial text Body for this specific file type.

Screen Shot 2020-04-09 at 9 13 14 AM

App information (please complete the following information):

brentcromarty commented 2 years ago

I am able to reproduce the same behaviour you see in the latest version: (Postman for Mac Version 9.21.5). If I hit the URL referenced from Chrome and open the downloaded file in BBEdit, BBEdit displays the same content, just with line feeds after each line:

EXTM3U

EXT-X-TARGETDURATION:8

EXT-X-VERSION:7

EXT-X-MEDIA-SEQUENCE:1

EXT-X-PLAYLIST-TYPE:VOD

EXT-X-INDEPENDENT-SEGMENTS

EXT-X-MAP:URI="main.mp4",BYTERANGE="616@0"

EXTINF:8.00000,

EXT-X-BYTERANGE:161593@616

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@162209

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@323913

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@485617

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@647321

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@809025

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@970729

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@1132433

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@1294137

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@1455841

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@1617545

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@1779249

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@1940953

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@2102657

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@2264361

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@2426065

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@2587769

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@2749473

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@2911177

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@3072881

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@3234585

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@3396289

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@3557993

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@3719697

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@3881401

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@4043105

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@4204809

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@4366513

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@4528217

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@4689921

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@4851625

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@5013329

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@5175033

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@5336737

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@5498441

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@5660145

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@5821849

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@5983553

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@6145257

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@6306961

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@6468665

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@6630369

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@6792073

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@6953777

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@7115481

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@7277185

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@7438889

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@7600593

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@7762297

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@7924001

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@8085705

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@8247409

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@8409113

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@8570817

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@8732521

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@8894225

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@9055929

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@9217633

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@9379337

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@9541041

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@9702745

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@9864449

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@10026153

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@10187857

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@10349561

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@10511265

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@10672969

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@10834673

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@10996377

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@11158081

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@11319785

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@11481489

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@11643193

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@11804897

main.mp4

EXTINF:8.00000,

EXT-X-BYTERANGE:161704@11966601

main.mp4

EXTINF:0.04267,

EXT-X-BYTERANGE:965@12128305

main.mp4

EXT-X-ENDLIST

So it does appear that Postman is not rendering the response as text.

dev-sharma-08 commented 1 year ago

Hi @discplayer @brentcromarty, I can see that the postman is rendering the response to the above URL as text. Can you update the app to the latest version and check whether this is still an issue for you?