# Usage /usr/bin/mysqlrouter_mrs_client [--help] --url= [--user|-u=] [--password|-p=] [--authentication|-a=] [--accept=] [--request-header-host=] [--encoded-request-header-host=] [--encoded-request-header-authorization=] [--payload-file=] [--payload=] [--encoded-payload=] [--write-format|-f=] [--write-to-file|-w=] [--wait-until-status=] [--path=] [--session-type|-s=] [--auth-app=] [--json-pointer|-j=] [--exclude-json-pointer|-e=] [--expected-header=] [--expected-status=] [--display=] [--session-file=] [--request-type|-t=] [--content-type=] [--response-type|-r=] [--json-schema-file=] [--json-schema=] [--encoded-json-schema=] [--encoded-expected-header=] [--protocol=] [--expected-fatal-error=] [--request-header-upgrade=] [--request-header-http2-settings=] # Command line argument description --help Show help and exit. --url HTTP/HTTPS url pointing to remote resources. --user , -u User name, required for authentication. --password , -p Users password, required for authentication. --authentication , -a Execute authentication flow on given endpoint. Allowed values: NONE,BASIC,SCRAM_GET,OAUTH2_F --accept Set the mime-type, that client can process. --request-header-host Set the value in the 'Host' header of the request. --encoded-request-header-host Set the value in the 'Host' header of the request. The value must be encoded using url-parameter encoding. --encoded-request-header-authorization Set the value in the 'Authorization' header of the request. The value must be encoded using url-parameter encoding. --payload-file Set the request body for POST, PUT requests. --payload Set the request body for POST, PUT requests. --encoded-payload Set the request body for POST, PUT requests (provided as an URL-encoded string). --write-format , -f Write format. --write-to-file , -w Write output to file. --wait-until-status Wait until server returns status-code specified in `expected-status` parameter. The value specifies how long `mrs_client` should wait, for it. --path Overwrite the path specified in URL. Using this parameter, user may split the URL on host part specified in --url and path. --session-type , -s Define how the session should be identified by the client. Allowed values: COOKIE,JWT. Where default value is COOKIE. --auth-app Define which authentication application should be used while authenticating. --json-pointer , -j Print only values selected by pointers (inclusive pointer). Multiple pointer should be separated by comma. --exclude-json-pointer , -e Print values that are not selected by the pointers(exclusive pointer). Multiple pointer should be separated by comma. Inclusive and exclusive pointers can't be used in the same execution. --expected-header Expect header/value in server's response message. --expected-status Specify allowed status code. Default is OK(200). --display What should be presented as output: VALUES=(none|all|VALUE[,VALUE[....]])where VALUE can be: REQUEST, TITLE, BODY, HEADER, STATUS, RESULT. By default its set to REQUEST,BODY,RESULT. --session-file File that contains session state, at start of the application the state is restored. At end the application stores the state to it.. --request-type , -t Define type of the request which should be send to the server. By default its GET, where allowed values are: GET,POST,PUT,DELETE,OPTIONS. --content-type Expect the response to have this content type. --response-type , -r Define expected response type by the server. By default its JSON, where allowed values are: JSON,RAW, BINARY(same as raw still shouldn't y). --json-schema-file Specify a file that contains JSON schema, which should be used for response validation. --json-schema Specify the JSON schema, which should be used for response validation. --encoded-json-schema Specify the JSON schema, which should be used for response validation. --encoded-expected-header Expect header/value in server's response message. The value must be encoded using url-parameter encoding. --protocol Force wire protocol. The value must be on of following values: HTTP1, HTTP2. Where the default is HTTP1. --expected-fatal-error Expect that HTTP client will return connection or protocol error. Match the error description with specified value. --request-header-upgrade Specifies the value of the Upgrade header to be included in the HTTP/1.1 request, typically used to initiate protocol switching (e.g., to WebSocket). --request-header-http2-settings Specifies the value of the HTTP2-Settings header to be included in the HTTP/1.1 request, used during HTTP/2 protocol upgrades to convey HTTP/2 settings in base64url-encoded format.