Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

How to write a request GET (http) with a login and password.


Guest C5LEMAN

Question

Guest C5LEMAN

Hi,

How to write a request GET (http) with a login and password.

example: .http://login:password@adress_IP_IPX800/preset.htm?LED1=1

Knowing that:

Please login or register to see this link.

We write: GET / preset.htm? LED1 = 0 HTTP/1.10x0D0x0A0x0D0x0A

Sincerely,

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Guest C5LEMAN
  • Inquirer
  • Please login or register to see this image.

    /emoticons/default_icon_cry.gif" alt=":cry:" />
    Link to comment
    Share on other sites

    • 0

    I still looking for the solution

    Please login or register to see this image.

    /emoticons/default_icon_evil.gif" alt=":evil:" /> , maybe soon with the opening of the API and version 2 of the box!

    Link to comment
    Share on other sites

    • 0

    A couple of things. HTTP authentication can be achieved in many ways, but often involves having a token returned which is then used on subsequent requests. Your first challenge is that the interface from the HC2 is TCP, not HTTP. It can basically send out a TCP packet with a data payload, but it cannot process the response or do anything with it.

    Yes, you can construct a HTTP packet using that data payload, but it's effectively a write-only mechanism. You're not going to get authenticated against anything. It's also unlikely that they (GCE ELectronics) would support username/password on say a query string (data payload), without using HTTPS and even then, it's not best practice. 99% of the time it's a two step process, i) authenticate and get token, ii) use token with request.

    However, using my very limited french, and reading the

    Please login or register to see this link.

    I would simply turn off "Enable Password" and remove the obstacle. My other suggestion is asking in the GCE Electronics forum (www.gce-electronics.com/forum), or, email support ([email protected]) and ask if there is a HTTP mechanism to specify username and password in one HTTP request. If you get that information, we may be able to construct a HTTP packet for you using the HC2.

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...