PragyaWF86 opened a new issue, #6374:
URL: https://github.com/apache/jmeter/issues/6374

   ### Expected behavior
   
   Escaped characters in data of curl should not cause "unbalanced quotes in  
curl issue"  and should allow data to be sent to the request
   
   ### Actual behavior
   
   
![image](https://github.com/user-attachments/assets/cc196af3-539b-4560-8bc4-f10c0563fb87)
   
![image](https://github.com/user-attachments/assets/49a7e724-6a98-4816-bcb8-f6d2c6fb8c86)
   
   
   ### Steps to reproduce the problem
   
   ` @Test
       void curlWithEscapedCharactersInBodyWork(){
           String curl = " curl -X POST \"localhost.com\" --data 'tes\\'t'";
           BasicCurlParser basicCurlParser = new BasicCurlParser();
           BasicCurlParser.Request request = basicCurlParser.parse(curl);
           assertNotNull(request.getPostData());
   
       }
       @Test
       void curlWithEscapedCharactersInBodyWorkDoubleQuote(){
           String curl = " curl -X POST \"localhost.com\" --data \"tes\\\"t\"";
           BasicCurlParser basicCurlParser = new BasicCurlParser();
           BasicCurlParser.Request request = basicCurlParser.parse(curl);
           assertNotNull(request.getPostData());
   
       }`
       these test cases help recreate the problem.
   
   ### JMeter Version
   
   5.5
   
   ### Java Version
   
   11
   
   ### OS Version
   
   mac os


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to