apache / apache/jmeter

Import from cURL is having some limitation for length of the string to be processed as cURL command

Open
#6,097 1 comment 0 reactions 0 assignees View on GitHub
defect to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

You are able to paste any cURL command into Import from cURL window

### Actual behavior

Due to some limitations, the UI freeze and the string is not copied in the window "Import from cURL"
You can wait as long as you can, no error message is seen but the text is not displayed in GUI

![image](https://github.com/apache/jmeter/assets/41440889/c0d2232b-4b68-4bf9-b644-42431a68223c)

### Steps to reproduce the problem

Preconditions:
have a very huge cURL command.
In our case, I did counted number of characters to be imported. It has 153142 characters.
it's a huge call with 451 parameters in the payload.
removing the cookie from this call, it remains 150490 characters

1. Copy cURL command from Chrome DevTool
2. go to JMeter GUI
3. click on Tools
4. click on Import from cURL
5. paste the cURL command into this screen

### JMeter Version

5.6.2

### Java Version

java version "1.8.0_391"

### OS Version

Windows 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.