You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Anju Dembla <an...@gmail.com> on 2020/04/07 05:37:09 UTC
Please help with MIME Type for .CSAR file
Hi Team,
Can someone please help me with MIME type for .csar file. I am trying to
upload a csar file but it’s failing in Jmeter 5.2.1 with an error message
“MIME type may not be blank”
I tried running the same script in Jmeter 3.0 with blank MIME type and it’s
working fine.
Please advise.
Regards,
Anju
Re: Please help with MIME Type for .CSAR file
Posted by Anju Dembla <an...@gmail.com>.
Thank you. It worked..!!
Regards,
Anju
On Tue, 7 Apr 2020 at 3:15 PM, glinius@live.com <gl...@live.com> wrote:
> Looking into CSAR file extension
> <https://www.filesuffix.com/en/extension/csar> page:
>
>
> > Category: Data files
> > Application: CARIS
> > Mime-type: application/octet-stream
>
> So try using *application/octet-stream* and presumably it should resolve
> your issue.
>
> Going forward if you will face difficulties with manually configuring the
> HTTP Request
> <
> https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request>
>
> sampler for file uploads be aware that you can always just record the file
> upload request using JMeter's HTTP(S) Test Script Recorder
> <
> https://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder>
>
> , just make sure to copy the file(s) you will be uploading to the "bin"
> folder of your JMeter installation
> <https://www.blazemeter.com/blog/recording-file-uploads-jmeter/> prior
> to
> executing the request in browser, JMeter should be smart enough to detect
> the media type of the file.
>
>
>
>
>
> --
> Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
Re: Please help with MIME Type for .CSAR file
Posted by "glinius@live.com" <gl...@live.com>.
Looking into CSAR file extension
<https://www.filesuffix.com/en/extension/csar> page:
> Category: Data files
> Application: CARIS
> Mime-type: application/octet-stream
So try using *application/octet-stream* and presumably it should resolve
your issue.
Going forward if you will face difficulties with manually configuring the
HTTP Request
<https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request>
sampler for file uploads be aware that you can always just record the file
upload request using JMeter's HTTP(S) Test Script Recorder
<https://jmeter.apache.org/usermanual/component_reference.html#HTTP(S)_Test_Script_Recorder>
, just make sure to copy the file(s) you will be uploading to the "bin"
folder of your JMeter installation
<https://www.blazemeter.com/blog/recording-file-uploads-jmeter/> prior to
executing the request in browser, JMeter should be smart enough to detect
the media type of the file.
--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org