api xml download

2 weeks ago

i've been trying for a while now to download the xml file from the api on one of our acces points i can get it to download through a powershell internet explorer hook but the problem is that wouldnt work once put on the server in tasksheduler. the reason i had to resort to the internet explorer hook is cause it would seem the login page of the airwave controller is not made in a form and can appearantly not be called by a invoke-webrequest or a webclient which would be the only way for the script to be able to do its job while no one is logged into the server. i was wondering if anyone else has ever succesfully download from the api or if i'm just doing something wrong on the webrequest. the location of the api is on <controlerwebconnection>ap_detail.xml?id=<ID-number of the ap>.

the way that i'd like to do it would be through webrequest. i've currently been trying to work off of

Re: api xml download

a week ago

the main problem is it wont let me log in to the main page i've tried connecting to ik through a webrequest but it would seem it doesnt detect the header with the password and username in it. the login page also isnt in a form so i can't use the webrequest.form to fill in the fields. i've been trying to trouble shoot this for the past 3 weeks but seem to have hit a brick wall that i cant get around with my limited powerschell knowledge.

Re: api xml download

a week ago

well appearantly i was overcomplicating things. it turns out the username/password get passed through in plaintext instead of encrypted so i was trying to do an unnecessary step. thank you for your replies. this thread could be deleted if necessary cause it turned out to be a non issue XD.