JBoss EAP HTTP API commands with curl doesn't work in Windows

Solution Verified - Updated -

Issue

  • Command prompt complains about single quotes and bad format using the deployment example from JBoss EAP configuration guide with HTTP API

    HTTP/1.1 401 Unauthorized
    Connection: keep-alive
    WWW-Authenticate: Digest realm="ManagementRealm", nonce="AAAACQAGikIZtEe4L+IGjI1DYpW4ZjfF9mFQL1F/SRvwCJSQ7HLo6lqK1+A=", opaque="00000000000000000000000000000000", algorithm=MD5, qop=auth
    X-Frame-Options: SAMEORIGIN
    Content-Length: 77
    Content-Type: text/html
    Date: Thu, 31 Aug 2023 13:26:37 GMT
    
    HTTP/1.1 500 Internal Server Error
    Connection: keep-alive
    X-Frame-Options: SAMEORIGIN
    Content-Type: application/json; charset=utf-8
    Content-Length: 109
    Date: Thu, 31 Aug 2023 13:26:37 GMT
    
    "java.io.IOException: org.jboss.dmr.stream.ModelException: Unexpected character ''' while reading DMR stream"curl: (3) URL using bad/illegal format or missing URL
    curl: (3) URL using bad/illegal format or missing URL
    curl: (3) URL using bad/illegal format or missing URL
    curl: (3) URL using bad/illegal format or missing URL
    curl: (3) URL using bad/illegal format or missing URL
    curl: (3) URL using bad/illegal format or missing URL
    curl: (3) URL using bad/illegal format or missing URL
    curl: (3) bad range specification in URL position 2:
    [{"operation"
     ^
    
  • Power Shell complains about bat format using the deployment example from JBoss EAP configuration guide with HTTP API

  • JSON argument format with JBoss EAP not working in Windows

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
  • Microsoft Windows
    • Command Prompt
    • Power Shell

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content