Class BasicCurlParser
java.lang.Object
org.apache.jmeter.protocol.http.curl.BasicCurlParser
Basic cURL command parser that handles:
- Since:
- 5.1
- 
Nested Class SummaryNested Classes
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanisValidCookie(String str) Verify if the string is cookie or filenamevoidsetAuthUserPasswd(String authentication, String url, Authorization authorization) Set the username , password and baseurl of authorizationstringToCookie(String cookieStr, String url) Convert string to cookiestatic String[]translateCommandline(String toProcess) Crack a command line.
- 
Constructor Details- 
BasicCurlParserpublic BasicCurlParser()
 
- 
- 
Method Details- 
parse
- 
translateCommandlineCrack a command line.- Parameters:
- toProcess- the command line to process.
- Returns:
- the command line broken into strings. An empty or null toProcess parameter results in a zero sized array.
 
- 
setAuthUserPasswdSet the username , password and baseurl of authorization- Parameters:
- authentication- the username and password of authorization
- url- the baseurl of authorization
- authorization- the object of authorization
 
- 
isValidCookieVerify if the string is cookie or filename- Parameters:
- str- the cookie to check
- Returns:
- Whether the format of the string is cookie
 
- 
stringToCookieConvert string to cookie- Parameters:
- cookieStr- the cookie as a string
- url- to extract domain and path for the cookie from
- Returns:
- list of cookies
 
 
-