rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: pallab on December 03, 2013, 02:39:53 PM

Title: When posting message through jmeter getting issue
Post by: pallab on December 03, 2013, 02:39:53 PM
Hi,

when i trying to post file using jmeter it works perfectly fine for .jpeg,.mp3 files. but when i try to post .txt files the files gets posted but file size is 0KB(empty file).

I compared the POST request from HFS upload button from browser and from jmeter, the only difference i found is in HTTP header, Content-Type: value. I am attaching the POST request from both tests, can anyone please help me to fix the issue.

If the jmeter config snapshot is needed to debug it, please let me know i will attach it.

Thanks!

Pallab
Title: Re: When posting message through jmeter getting issue
Post by: rejetto on December 07, 2013, 06:06:18 PM
your test is a small file, and it's text, append the whole data passing through
Title: Re: When posting message through jmeter getting issue
Post by: pallab on December 07, 2013, 06:15:27 PM
Hi Rejetto,

Thanks a  lot for your reply.

You mean to say to POST a big text file? Say 1- MB of text file?

Pl correct if i understood differently.

Pallab
Title: Re: When posting message through jmeter getting issue
Post by: rejetto on December 08, 2013, 06:58:59 PM
nope.
you attached only the header of your request.
i meant to attach ALL of it.
Title: Re: When posting message through jmeter getting issue
Post by: pallab on December 09, 2013, 06:25:39 AM
Hi Rejetto,

Attaching all  the request and response headers from Jmeter

One more thing, if the txt file is big, I am seeing partial data in it.

( in my case a txt file with 250 lines, showed 240 in HFS folder, rest lines were missing )

Pallab
Title: Re: When posting message through jmeter getting issue
Post by: rejetto on December 15, 2013, 01:49:19 PM
i tested with HFS 2.2g and it actually gave me a problem,
while version 2.3 worked fine.

Can't say when i'll have the time to fix it on the 2.2 branch, so if you need it now i can advice to switch to version 2.3, sorry
Title: Re: When posting message through jmeter getting issue
Post by: rejetto on December 15, 2013, 01:51:09 PM
just a note: for my tests i used this file attached, and fired it to HFS by command line: type upload-test.txt|nc localhost 80
Title: Re: When posting message through jmeter getting issue
Post by: pallab on December 18, 2013, 06:27:48 AM
Thanks a lot Rejetto !!

Its working with 2.3


Pallab