bitfocus / companion-module-generic-http

Generic HTTP module
MIT License
9 stars 19 forks source link

Remove Encoder? #64

Closed 12rkane closed 3 weeks ago

12rkane commented 1 month ago

Hello. I am working on trying to get HTTP GET requests to work with a Synaccess NetBooter (NP-02B) but after looking at wireshark capture with what curl sends (curl HTTP GET commands do work) verses to what companion sends, it looks like there might be an issue with the module to have a header that this specific device doesn't like? image

Not sure if you want to edit or make an option for that header to be added OR to make a module for this netbooter, though I'm sure not really anyone would use these?

The capture on left is what companion sends, the capture on the right is what curl sends via CMD command

Thanks!

12rkane commented 3 weeks ago

Note for future people: This was not the root cause of the authentication issue. Has to do with new standards put in place with the HTTP module to do lowercase characters only to keep with new standards

In this case: the SynAccess Netbooter, is looking and only supports "Authentication" rather than "authentication". Since the text does not match, it does not see credentials and throws the 401 error (In my laymen talk)