rejetto forum

When posting message through jmeter getting issue

pallab · 8 · 2917

0 Members and 1 Guest are viewing this topic.

Offline pallab

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
your test is a small file, and it's text, append the whole data passing through


Offline pallab

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
nope.
you attached only the header of your request.
i meant to attach ALL of it.


Offline pallab

  • Occasional poster
  • *
    • Posts: 4
    • View Profile
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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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


Offline pallab

  • Occasional poster
  • *
    • Posts: 4
    • View Profile