rejetto forum
Software => HFS ~ HTTP File Server => Topic started 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
-
your test is a small file, and it's text, append the whole data passing through
-
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
-
nope.
you attached only the header of your request.
i meant to attach ALL of it.
-
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
-
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
-
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
-
Thanks a lot Rejetto !!
Its working with 2.3
Pallab