Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing device remotely #201

Open
manongthis opened this issue Dec 26, 2023 · 2 comments
Open

Accessing device remotely #201

manongthis opened this issue Dec 26, 2023 · 2 comments
Labels
question Further information is requested

Comments

@manongthis
Copy link

manongthis commented Dec 26, 2023

Device Name: B315s-936

So I want to access the device remotely but I can't seem to make it work with this device B315s-936. To Access it manually I have to change the request header via mod header. But I can only access the whole page if I add html/home.html in the url it won't redirect if only put https://x.x.x.x:PORT

This is the example code

my_custom_session = requests.Session()
my_custom_session.headers.update({'Host': '192.168.8.1'})

 with Connection(url, username=user, password=password, requests_session=my_custom_session) as connection:
        client = Client(connection)

I can access other types of device but not this. Is it not compatible with this device?

@Salamek Salamek added the question Further information is requested label Dec 27, 2023
@Salamek
Copy link
Owner

Salamek commented Dec 27, 2023

It may be incompatible... there is no guarantee that all huawei devices will be supported since this library is using unofficial API...

@manongthis
Copy link
Author

I actually can access it locally connecting the device directly into my computer. It works fine. but when I want to access it remotely via update header Host it does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants