Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleNote!
cURL commands, third party rest client applications (e.g. Postman) or even Image Added's own REST Client agent can be utilized to send REST requests to the REST Server agent.

...

Info
titleExample cURL

Example for GET

  1. no SSL

    Code Block
    curl "http://localhost:8089/abc"


  2. with SSL

    Code Block
    curl "https://localhost:8089/abc" --insecure


Example for POST

  1. Including content body

    Code Block
    curl -d "example content body" "http://localhost:8089/abc"


  2. With Authorization header field
  • Simple

    Code Block
    titleBasic
    curl -u myuser:mypw "https://localhost:8089/abc" --insecure


    Code Block
    titleOAuth 2.0
    curl -H "Authorization: Bearer 
    eyJraWQiOiJqZXR0eSIsImFsZyI6IlJTMjU2In0.eyJhdWQiOiJSaWVsbGUgQXBwIiwic2NvcGUiOiJzY29wZTIgc2NvcGUzIiwiaXNzIjoiZGlnaXRhbHJvdXRlIiwiZXhwIjoxNTEyNzA1NTQ3LCJpYXQiOjE1MTI3MDM3NDd9.ZRESO3VT4TvsiPdh5kFOwkNG7t3NjpN60_PJipcE5W-eceOf5PX_uphyjSO3yo9HAQVHt4cRlOaXvFDpeZvKjIyvVIrEGDtcXy3koPicevLwL9ivBTbC9q-LFof0ojqpbO5xypUVmCMYeRdLki7c1IbkDpVrWHj322JKFoL77wD6448pxyzZL6DVeByXIAiOCjalzoUEODwrJdEy0fQegqe-qMJWkDZp1FVPqe79XuLpK7dsUUhHOMryuHjBtC9KsvLENaN6F5VPoqG6htYPOADcDbGRC6OAgNEZfOFoRA2jk7QwnL9V58i_CkaktTz1rmFUjuK9CeeT-GAZKdIARw"
     "https://localhost:8089/abc" --insecure


  • Multi

    Code Block
    curl -H "hello: how are ya" -H "hello: I am fine" -H 
    "Authorization: Basic bWU6bXlwdw==, SomeOtherAuth blahbalhb, Bearer 
    eyJraWQiOiJqZXR0eSIsImFsZyI6IlJTMjU2In0.eyJhdWQiOiJSaWVsbGUgQXBwIiwic2NvcGUiOiJzY29wZTIgc2NvcGUzIiwiaXNzIjoiZGlnaXRhbHJvdXRlIiwiZXhwIjoxNTEyNTQ5MTgwLCJpYXQiOjE1MTI1NDczODB9.WYuREVWAvotq5glWvUwY91nTs2i82vrSlS3Vsn8Io5NVN-UDbWrHscnw9GeXO6qn2OK6sWxKmp1ZbKgYSharsCgenE8tTkh0EnROygvq8Nf58pZw03weBgnKqC_ty9D4CKwko6jtMemTV3vCbI5vCjYXghB8UqsQEuTD91X6zDyXkOQm-rnuMDV0zCFvJSg81X76AF0HhiF5bN6AHvamshcqXAtuElWtq7QD_W-QCqW4eu--u-YgWRCuVeaP_E9bIV5A2vj2ouY6M7dj6As7l8pqwYdSF-6WF6NNKeAYHFQDlCeyXQ-UjMCsnIoNwNkQo-ZtNJpWmcgF19beOUU93A"
     "https://localhost:8089/abc/def?k1=v1&k1=v11&k2=v2" --insecure



Scroll ignore
scroll-viewportfalse
scroll-pdftrue
scroll-officefalse
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse


Next:


Scroll pagebreak