Bug 62959 - Ability to create an HTTP Request from a Curl command
Summary: Ability to create an HTTP Request from a Curl command
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: HTTP (show other bugs)
Version: 5.0
Hardware: All All
: P2 enhancement (vote)
Target Milestone: JMETER_5.1
Assignee: JMeter issues mailing list
URL:
Keywords: FixedInTrunk
Depends on:
Blocks:
 
Reported: 2018-11-27 22:30 UTC by UbikLoadPack support
Modified: 2019-02-06 10:35 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description UbikLoadPack support 2018-11-27 22:30:59 UTC
Hello,
As suggested in Bug 62870 by reporter, Postman has a feature to create a test from curl command.

This is interesting as FF or Chrome allow to export a URL call to a cURL command.

So we are creating this enhancement request and will propose a POC of it so that you can see if it can be interesting.

Regards
Comment 1 UbikLoadPack support 2018-11-27 23:02:21 UTC
See:

-https://github.com/apache/jmeter/pull/436
Comment 2 steve anders 2018-11-28 07:12:26 UTC
see:

-- https://games.lol/android/
Comment 3 Philippe Mouawad 2018-12-19 09:55:06 UTC
pmouawad@apache.org
	
10:54 AM (2 minutes ago)
	
to commits
Author: pmouawad
Date: Wed Dec 19 09:54:42 2018
New Revision: 1849285

URL: http://svn.apache.org/viewvc?rev=1849285&view=rev
Log:
Bug 62959 - Ability to create a Test plan from a Curl command

Contributed by UbikLoadPack

This closes #436
Bugzilla Id: 62959

Added:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/curl/
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/curl/BasicCurlParser.java   (with props)
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/action/
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java   (with props)
    jmeter/trunk/test/src/org/apache/jmeter/curl/
    jmeter/trunk/test/src/org/apache/jmeter/curl/BasicCurlParserTest.java   (with props)
Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionNames.java
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/xdocs/changes.xml
Comment 4 Philippe Mouawad 2018-12-19 12:16:15 UTC
Author: pmouawad
Date: Wed Dec 19 12:15:24 2018
New Revision: 1849294

URL: http://svn.apache.org/viewvc?rev=1849294&view=rev
Log:
Bug 62959 - Ability to create a Test plan from a Curl command

Fix test failures due to missing french translation
order key alphabetically


Bugzilla Id: 62959

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
Comment 5 Philippe Mouawad 2019-02-06 10:35:40 UTC
Author: pmouawad
Date: Wed Feb  6 10:23:03 2019
New Revision: 1853058

URL: http://svn.apache.org/viewvc?rev=1853058&view=rev
Log:
Bug 62959 Ability to create an HTTP Request from a Curl command

Improvements:

- Allow updating Test Plan instead of creating a whole one
- Add a comment on HTTP Request saying it was created from cURL on date
Fixes:

- If !request.isCompressed, don't add gzip,deflate
Bugzilla Id: 62959

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_de.properties
    jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java