Hi Sunil,
Did you try changing the extension and then open that file again?
Is there any difference in the content despite the extension difference?
Did you also check the request headers that’s going in postman similar to
that in JMeter?


Regards
Aditya

On Sun, 14 Jan 2024 at 5:00 AM, Sunil Malgaya <sunilmalg...@gmail.com>
wrote:

> Dear JMeter Users,
>
> Seeking your assistance for the problem statement I have.
>
> I am actually trying to download the binaries (word, pdf, excel, pptx,
> docm, xlsm etc.) via an api and saving the response in the local folder.
> However, when I reviewed the saved binaries, except the pdfs all have
> extensions set  as
> "vnd.openxmlformats-officedocument.wordprocessingml.Document" for docx and
> docm; "vnd.openxmlformats-officedocument.presentationml.presentation" for
> pptx;
> "vnd.openxmlformats-officedocument.spreadsheetml.sheet" for excel and xlsm
>
> But for the pdf it shows up correctly.
>
> Any ideas on how to fix that in JMeter only? I tried passing the extensions
> as above in 'Content-Type' also but still no help. Just an additional
> point, when I run the same api via postman, I get the files with the right
> extensions; so not sure why JMeter behaves this way.
>
> Thanks in advance for your help.
>

Reply via email to