Re: File undefined error when sent via FileUploads section in HTTPRequest

2019-11-14 Thread sebb
Are you sure JMeter can find the file?

i.e. is SampleVideo_1280x720_1mb.mp4 present in the JMeter starting
directory?

Best to use absolute path names if you are not sure.

On Thu, 14 Nov 2019 at 11:23, Karuna Lingham  wrote:

> I am trying to send an image/video file to my API endpoint by attaching the
> file under 'Files Upload' section of the HTTP Request and always get this
> error:
> *"TypeError: Cannot read property 'size' of undefined" * For some reason,
> the file does not get recognised on jmeter, tried on Postman and it works
> fine. I have tried various things, like ticked the box "Use
> multipart/form-data", moved file to JMeter's bin folder.
>
> *Request Headers:*
>
>
>
>
>
> *Connection: keep-alivecontent-type: multipart/form-data;
> boundary=mlsContent-Length: 1055964Host: xyzUser-Agent:
> Apache-HttpClient/4.5.7 (Java/12.0.1)*
>
> *Request Body:*
>
>
>
>
>
>
>
>
>
>
>
>
> *POST https://xyz POST
> data:--JypF-HPWzMbOA9YQFz8pUAXgZvilHpAA63Content-Disposition: form-data;
> name="file"; filename="SampleVideo_1280x720_1mb.mp4"Content-Type:
> video/mp4Content-Transfer-Encoding: binary here>--JypF-HPWzMbOA9YQFz8pUAXgZvilHpAA63--Cookie Data:connect.sid=xyz*
>
>
> MIME Type: video/mp4 Content-Type: multipart/form-data
>
> Please help!!
>


File undefined error when sent via FileUploads section in HTTPRequest

2019-11-14 Thread Karuna Lingham
I am trying to send an image/video file to my API endpoint by attaching the
file under 'Files Upload' section of the HTTP Request and always get this
error:
*"TypeError: Cannot read property 'size' of undefined" * For some reason,
the file does not get recognised on jmeter, tried on Postman and it works
fine. I have tried various things, like ticked the box "Use
multipart/form-data", moved file to JMeter's bin folder.

*Request Headers:*





*Connection: keep-alivecontent-type: multipart/form-data;
boundary=mlsContent-Length: 1055964Host: xyzUser-Agent:
Apache-HttpClient/4.5.7 (Java/12.0.1)*

*Request Body:*












*POST https://xyz POST
data:--JypF-HPWzMbOA9YQFz8pUAXgZvilHpAA63Content-Disposition: form-data;
name="file"; filename="SampleVideo_1280x720_1mb.mp4"Content-Type:
video/mp4Content-Transfer-Encoding: binary--JypF-HPWzMbOA9YQFz8pUAXgZvilHpAA63--Cookie Data:connect.sid=xyz*


MIME Type: video/mp4 Content-Type: multipart/form-data

Please help!!


Re: Not able to record native app traffic in jmeter with https protocol

2019-11-14 Thread glin...@live.com
Be informed that in case of  Android >= 7.0 Nougat

  
you need to perform extra steps in order to be able to record HTTPS traffic
via JMeters MITM certificate 1. Add the following line to the  application
  
element in your Android application  manifest file
   
> android:networkSecurityConfig="@xml/network_security_config"

 2.  create file `network_security_config.xml` under  res folder
  
of your application and put the following code inside it: 3.
Re-compile your application in  debug flavour
  
> gradlew assembleDebug

4. Replace the application on the device with the newly build debug version
- this one you can record with JMeter. If you don't have access to your
application sources you will have to root your device,  convert JMeter's
certificate into PEM format using OpenSSL and copy it to Android OS trusted
certificates area using ADB
 
More information: Recording Using Android Devices

  



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html