Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lack of CR - TCP Sampler

I am trying to use TCP Sampler for creating an automatic tests on top of IMAP4.
I am not using the Mail Reader Sampler because i need to allow injecting pure IMAP4 commands. My IMAP4 server (like any IMAP4 server) expect to receive any IMAP4 command end with CRLF (0D0A) so there fore i have ended my command in the Text to send area with a new line (Enter).

I sniffed the traffic and noticed that the JMeter added only LF (0A) after the command (without the Carriage return)

Is there something that i am missing here ?
How can i enforce JMeter TCP Sampler to add CRLF at the end of every TCP command ?

like image 558
user2650637 Avatar asked Aug 04 '13 14:08

user2650637


1 Answers

Using XML-escaped solved the problem !!! http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

In the JMX file that is based on XML I appended the 0xD Character explicitly:

1 login [email protected] a123456A
like image 130
user2650637 Avatar answered Sep 23 '22 18:09

user2650637