I've setup external guest portal. After making POST reguest to http://AP_IP:880/cgi-bin/hotspot_login.cgi I allways get
error parsing post request
truncated query strings, failed to handle the http request
What am I doing wrong. Am I missing something?
Please follow the document "Guest Access Portal Integration" at:
You need to send atleast the ga_Qv to the AP in the post request to the AP and it has to be part of the POST URL:
Please pass the ga_Qv as read from the first redirection URL from the client. I have seen couple of times the external webserver API's end up doing double URL encoding on the value of ga_Qv so please ensure you pass the value as it is to the AP.
I tried that before and wasn't working.
I found working solution on http://community.cambiumnetworks.com/t5/Enterprise-E500-E400-Hotspot/Integration-with-external-login-page-for-guess-access/td-p/56611 - you have to attach to POST URL whole query string.
I have another feature request .. When you select click through captive portal, it would be very useful if you could also POST session_timeout parameter with the HTML form and that it could be higher than 86400 seconds.
We have increased the session time to be max seven days now but handling session time through post request will not be a good idea as people might be able to hack it and pass any value to it. This new change will be there in upcoming 3.1 beta firmware and you should see it in a week or so.
When click-thtrough portal is selected, there is no username and password authentication needed with restrictions like in RADIUS mode.
Click through mode is simply for user to accept terms and conditions before using internet. Session time is not important and if someone would like to hach that value, let him.
I still think it would be nice to have such a feature ONLY in click through mode that external portal would have option to dynamically adjust session time on the fly.
Sure we can probably add a config knob to allow session time to be overridden by post requests for external servers and customers who want to do that can enable it.
I will see if we can add it for our next firmware release.
I have set the E400 to use external hotspot with click through setting.
I have sucessfully get the login page host at my external server. Can I know after authenticate, how the external server inform the AP the user already successfully authenticated?
My AP IP is 10.100.10.1, but when I follow the document, post the parameter to 10.100.10.1:880, the browser cannot open the connection due to the AP dont have port 880 open.
In the WLAN settings you will have to make guest-access connection-mode as http for opening port 880.
Thanks for your reply. Is the attached configuration correct for turn on the port 880? Or there is some other page to turn on the service?
Thank you very much.
Yes you configuration is perfect now and it should work. Do remember that the AP expects all the quesy strings to be present in the POST URL from your external webserver to the AP. These query strings should be exactly the same as found in the redirection URL. There will be no post content as this is a click through access type.
But when I try make the post request to the http://ap_ip:880/xxxx I get the error message as below. It seems like the port 880 is not activated in the AP.