Skip to content

Error 401 when sending an http request #58

Closed Answered by dxdc
muddycharles68 asked this question in Q&A
Discussion options

You must be logged in to vote

You have a number of issues here:

  1. Missing Basic in your Authorization
  2. Invalid JSON; too many quotes in your up_url

Try this:

"accessories": [
    {
    "name": "Office",
    "up_url": "http://192.168.1.35/set.cgi?addr=1&gp=14&val=up",
    "down_url": "http://192.168.1.35/set.cgi?addr=1&gp=14&val=dn",
    "show_toggle_button": false,
    "stop_url": "http://192.168.1.35/set.cgi?admin&addr=1&gp=14&val=st",
    "http_options": {
        "method": "POST",
        "headers": {
            "Authorization": "Basic YWRtaW46YWRtaW4="
        }
    },
    "verbose": true,
    "accessory": "BlindsHTTP"
    }
],

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
2 replies
@muddycharles68
Comment options

@muddycharles68
Comment options

Comment options

You must be logged in to vote
10 replies
@muddycharles68
Comment options

@muddycharles68
Comment options

@muddycharles68
Comment options

@dxdc
Comment options

Answer selected by dxdc
@muddycharles68
Comment options

@dxdc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants