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

Net.FHttp - Headers?


Guest deraaij

Question

Guest deraaij

Hi Fibaro,

Is there a way to add custom headers with the new http lua net.FHttp class?

For example SOAPACTION .

Regards,

Mark

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0
Guest deraaij
  • Inquirer
  • BTW I am asking it so I could make examples how people can use lua for the sonos commands instead of curl.

    Regards,

    Mark

    Link to comment
    Share on other sites

    • 0

    deraaij, yes, we are working on that

    Link to comment
    Share on other sites

    • 0
    Guest deraaij
  • Inquirer
  • deraaij, yes, we are working on that

    Hi, is it already in the latest beta? If yes I can make the Sonons LUA examples without os.execute.

    Regards,

    Mark

    [ Added: 2013-03-07, 20:24 ]

    deraaij, yes, we are working on that

    Any news yet (now os.execute has been revoked)?

    [ Added: 2013-03-25, 23:14 ]

    No news? Do I need to add a feature request in bugzilla?

    Link to comment
    Share on other sites

    • 0
    Guest merylion
  • Inquirer
  • Hi Fibaro

    Is anything known about Net.Http Headers?

    Now we have disabled os.execute will be nice to have something instead to make my Sonos talking again

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Thank

    Marcin

    Link to comment
    Share on other sites

    • 0
    Guest jrkalf
  • Inquirer
  • Hi Fibaro

    Is anything known about Net.Http Headers?

    Now we have disabled os.execute will be nice to have something instead to make my Sonos talking again

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Thank

    Marcin

    Hey Marcin,

    Please login or register to see this link.

    It's available... in virtual devices, not in scenes just yet

    Please login or register to see this image.

    /emoticons/default_sad.png" alt=":(" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    sad part, you can't debug in virtual devices, so that makes coding for them real hard.

    Link to comment
    Share on other sites

    • 0
    Guest deraaij
  • Inquirer
  • Feature request added in bugzilla for custom headers:

    Please login or register to see this link.

    Link to comment
    Share on other sites

    • 0

    Hello,

     

    Does net.FHttp support modification of headers already? Im struggling to post data in vd  but need to set a cookie...

    Link to comment
    Share on other sites

    • 0
    On 6/10/2018 at 12:30 PM, Piotr Bojko said:

    Hello,

     

    Does net.FHttp support modification of headers already? Im struggling to post data in vd  but need to set a cookie...

    I'm also looking for the ability to send headers in a virtual device.

     

    I've been able to send headers in a scene but not in a virtual device using 'net.HTTPClient'

    Link to comment
    Share on other sites

    • 0
    On 1/21/2013 at 4:08 PM, A.Socha said:

    deraaij, yes, we are working on that

    any update to send headers with net.Fhttp...

    Link to comment
    Share on other sites

    • 0

    Still working on this? Would expect setting custom headers on http requests from Virtual Devices to work now!?

    Link to comment
    Share on other sites

    • 0

    Also looking for a way to add custom headers to the net.FHttp class (e.g. SOAPAction).  Any chance to have this implemented in reasonable time? (request pending since 2013 !!!)

    • Like 1
    Link to comment
    Share on other sites

    • 0

    Hi all!

     

    I'm in urgent need to be able to add custom headers with for an example Content-Type: application/json and Authorization: Bearer *mykey*

     

    The feature request link above doesn't go to a feature request, but to

    Please login or register to see this link.

     

    Has this been implemented yet, if so how can I add Headers?

     

    If it hasn't been implemented, is there another way I can from a virtual device send a http-request with custom header?

     

    Is there any documentation around for net.FHttp that explains all parameters and also all methods and properties on the returned object?

     

    BR

     

    Totterask

    Edited by Totterask
    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...