Using HTTP Request to test POST to upload and store a file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using HTTP Request to test POST to upload and store a file

ljmwaugh
I'm trying to use HTTP Request to upload and store a file via a POST to a
REST api.  I can't use HTTP Raw because it is an https request.  
 
I can successfully accomplish this with smaller files (<= 500 kb).  With
larger files (>= 582 kb) it fails with a 500 Error: Connection error.  I
know it is not an issue with my REST api because I can use POSTMAN and
successfully post the same file.

I've increased the Connect timeouts and Response timeouts to 80000000
msecs.
 
These are images or audio recordings, not text files.
 
No errors appear in the jmeter logs.
 
Is there a setting controlling the size somewhere I haven't found?  Is
there anyway to get this to work successfully?

Lisa Waugh
720-396-0112
Fax:  720-396-0112
Charlotte, NC



Reply | Threaded
Open this post in threaded view
|

Re: Using HTTP Request to test POST to upload and store a file

Felix Schumacher


Am 27. Juli 2017 23:50:20 MESZ schrieb Lisa Waugh <[hidden email]>:

>I'm trying to use HTTP Request to upload and store a file via a POST to
>a
>REST api.  I can't use HTTP Raw because it is an https request.  
>
>I can successfully accomplish this with smaller files (<= 500 kb).
>With
>larger files (>= 582 kb) it fails with a 500 Error: Connection error.
>I
>know it is not an issue with my REST api because I can use POSTMAN and
>successfully post the same file.
>
>I've increased the Connect timeouts and Response timeouts to 80000000
>msecs.
>
>These are images or audio recordings, not text files.
>
>No errors appear in the jmeter logs.

I think I can confirm this. Is the requests duration longer than expected?

Could you take a threaddump while the request is waiting?

Felix

>
>Is there a setting controlling the size somewhere I haven't found?  Is
>there anyway to get this to work successfully?
>
>Lisa Waugh
>720-396-0112
>Fax:  720-396-0112
>Charlotte, NC

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Using HTTP Request to test POST to upload and store a file

Felix Schumacher
Am 28.07.2017 um 13:30 schrieb Felix Schumacher:

>
> Am 27. Juli 2017 23:50:20 MESZ schrieb Lisa Waugh <[hidden email]>:
>> I'm trying to use HTTP Request to upload and store a file via a POST to
>> a
>> REST api.  I can't use HTTP Raw because it is an https request.
>>
>> I can successfully accomplish this with smaller files (<= 500 kb).
>> With
>> larger files (>= 582 kb) it fails with a 500 Error: Connection error.
>> I
>> know it is not an issue with my REST api because I can use POSTMAN and
>> successfully post the same file.
>>
>> I've increased the Connect timeouts and Response timeouts to 80000000
>> msecs.
>>
>> These are images or audio recordings, not text files.
>>
>> No errors appear in the jmeter logs.
> I think I can confirm this. Is the requests duration longer than expected?
>
> Could you take a threaddump while the request is waiting?
Strangely enough, I can't reproduce it at home with my linux setup.

How do you setup the http sampler to send the file? Which version of
JMeter and Java are you using. Is this between different computers,
could there be a firewall that interferes with the requests?

Can you try to set the logging of JMeter to something more detailed like
debug?

Felix

>
> Felix
>
>> Is there a setting controlling the size somewhere I haven't found?  Is
>> there anyway to get this to work successfully?
>>
>> Lisa Waugh
>> 720-396-0112
>> Fax:  720-396-0112
>> Charlotte, NC
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]