Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Current »

The curl utility is used on command-lines or in scripts to transfer data. It is also used in cars, television sets, routers, printers, audio equipment, mobile phones, tablets, set-top boxes, media players and is the preferred internet transfer software for thousands of software applications affecting billions of humans daily. See for more information.


1. Overview

curl (at least versions >= 7.38) natively supports Moonshot; you can use it to access to HTTP-based APIs from the command-line using Moonshot.

2. Compatibility

2.1. Key

In the tables below, the following icons have the following meanings:

  • (tick) - This version of the software has been tested and verified as supporting Moonshot.
  • (error) - This version of the software has been tested and verified as not supporting Moonshot.
  • (question) - This version of the software has not yet been tested thoroughly and its status is not known. Let us know if you have tried it and whether it worked or not!

2.2. Compatibility List

Note that accessing supported versions of this software requires a Moonshot compatible client - see the the table below for details on which clients are supported.

Generally, curl versions that list GSS-API as feature will be ok. GSS-Negotiate is not the same.

Any versions not listed below have not yet been tested. If you do so, please let us know!

curl 7.38.0(tick)Tested on Linux, macOS
curl 7.29.0(error)Tested on CentOS 7

3. Installation Instructions

Install curl using apt (Debian-based systems) or yum (RH-based systems). curl is included by default on macOS.

4. Usage Instructions

Just add the --negotiate and -u ":" to your command line. An example (use as username and alicepwd as password):

$> curl --negotiate -u ":"
  "local-login-user": "student",
  "urn:ietf:params:gss:federated-saml-assertion": "<ns0:Assertion xmlns:ns0=\"urn:oasis:names:tc:SAML:2.0:assertion\" ID=\"181f1b8e-9377-4021-a5f1-218568569625\" IssueInstant=\"2018-02-07T09:56:53Z\" Version=\"2.0\" xmlns:xsi=\"\"><ns0:Issuer></ns0:Issuer><ns0:Subject><ns0:NameID Format=\"urn:oasis:names:tc:SAML:2.0:nameid-format:transient\">27e7e34a-18d0-4c7f-8132-dc2a86ff96e1</ns0:NameID><ns0:SubjectConfirmation Method=\"urn:ietf:params:abfab:cm:user\"/></ns0:Subject><ns0:Conditions NotBefore=\"2018-02-07T09:56:53Z\" NotOnOrAfter=\"2018-02-07T10:56:53Z\"/><ns0:AttributeStatement><ns0:Attribute Name=\"idp_software\" NameFormat=\"urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified\"><ns0:AttributeValue xmlns:xs=\"\" xsi:type=\"xs:string\">UMU/JISC IDP module for FreeRADIUS</ns0:AttributeValue></ns0:Attribute><ns0:Attribute Name=\"urn:oid:\" NameFormat=\"urn:oasis:names:tc:SAML:2.0:attrname-format:uri\"><ns0:AttributeValue xmlns:xs=\"\" xsi:type=\"xs:string\">student</ns0:AttributeValue></ns0:Attribute></ns0:AttributeStatement></ns0:Assertion>",
  "urn:ietf:params:gss:federated-saml-attribute urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified idp_software": "UMU/JISC IDP module for FreeRADIUS",
  "urn:ietf:params:gss:federated-saml-attribute urn:oasis:names:tc:SAML:2.0:attrname-format:uri urn:oid:": "student",
  "urn:ietf:params:gss:radius-attribute 1": "",
  "urn:ietf:params:gss:radius-attribute 24": "NzYwODE1NTQ1",
  "urn:ietf:params:gss:radius-attribute 26.25622.138": "YjQwNmRjNWEtNDBhZS01NmRkLWI4ZjctMGE3NTYyYzQyZDg1QGRlbW8taWRwLm1vb25zaG90LmdlYW50Lm9yZw==",
  "urn:ietf:params:gss:radius-attribute 79": "AwgABA==",
  "urn:ietf:params:gss:radius-attribute 80": "v+jV06dCFEB/Dhnhh6u+Og=="

  • No labels