Jump to content
Froxlor Forum

Search the Community

Showing results for tags 'curl'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Froxlor
    • Announcements
    • Feedback
    • Development
    • Bugs and Feature Requests
    • Trashcan
  • Support
    • General Discussion
  • Other Languages
    • German / Deutsch

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. I tried to use the Froxlor API with curl but I got stuck at "Invalid request header". This is the curl command I am trying: curl --location --request POST 'https://MYDOMAIN/api.php' \ --header 'secret: mysecretstring' \ --header 'apikey: myapikey' \ --header 'Content-Type: application/json' \ --data-raw '{ "command": "Froxlor.listFunctions" }' of course I insert the real domain and secret strings this is clear not the issue. If I understand the code right it fails even before trying to authenticate: https://github.com/Froxlor/Froxlor/blob/bd48fb732847c3926526335603ca2f3ba2c7c3b4/lib/Froxlor/Api/FroxlorRPC.php#L30 Any idea whats wrong with my request header? EDIT: This is a working curl command: curl --location --request POST 'https://MYDOMAIN/api.php' \ --header 'Content-Type: application/json' \ --data-raw '{ "header": { "apikey": "MYAPIKEY", "secret": "MYSECRET" }, "body": { "command": "Froxlor.listFunctions" } }'
×
×
  • Create New...