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


HttpRequest response headers


Gazza

Recommended Posts

Hi there,

 I'm attempting to modify the work done by 

Please login or register to see this link.

 on the French forum, in which he's created a QuickApp to allow talk to MelCloud for Mitsubishi Air Con control.  In Australia and NZ, the equivalent service is MelView which has a similar but different API.  I have located the following works for the MelView API:- 

Please login or register to see this link.

.  But where I'm getting stuck, is seeing how to retrieve headers from the Http Response.  As you can see, when sending the inital login request, the resposne consists of a json table with data about the account, but more importantly, a cookie with an auth=<string> which is required to be passed in the header of future requests for the session.  I'm tearing my hair out, trying to find Fibaro API data that shows how to extract the response headers, and specifically how to obtain this cookie.

 

TIA.

Cheers,

Garrick

Link to comment
Share on other sites

Please login or register to see this code.

and then

Please login or register to see this code.

 

Edited by marczu_83
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
Reply to this topic...

×   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...