pearlxcore / Huawei-Router-Tool

Tool to interact with Huawei router using Huawei API. Project is no longer maintained.
128 stars 42 forks source link

API Control #3

Closed norton62 closed 4 years ago

norton62 commented 4 years ago

This is amazing, wanted to thank you for creating this!

I have an issue when trying to change the 'iptype' in the API control. I only want it to use IPv4 but it is currently set to mode '2' which is IPv6.

When I post a change I get 'Error 125003 : ERROR_WRONG_SESSION_TOKEN'.

I saw that you can't make any changes until quarantine is over, but do you know how I can change this as there is no setting in the WebUI?

image

Any help would be great! - Using Huawei B525 Router

pearlxcore commented 4 years ago

Hi. The session error I already fixed but haven’t uploaded the latest binary. This error may appear on some model while trying to send POST request. I didn’t saw this error on E5577 but on B525 and B618 it appeared maybe because it using different method.

I once played with the api (api/dialup/profiles) while using E5577. Yes you can make changes to the request like adding new profile or even change profile setting. Im sure you can make changes for ip type too.

At the moment Im not sure how you can change that value other than webui setting. Maybe you try curl command to send POST request to server.

norton62 commented 4 years ago

Thanks for the reply!

I managed to change the setting by unhiding the setting in the HTML editor. I'm not sure why the developers hide these options.

pearlxcore commented 4 years ago

Awesome! . It will be nice if there is custom webui adding all the important setting.