Router Web Page Authentication

Sorry to be bringing this up again, it looks like it's been addressed a few times in the last couple years, but I've read these multiple times and attempted to apply the lessons they teach and have not had success.
http://forums.ni.com/t5/LabVIEW/HTTP-Connection-with-Password/m-p/1146346#M504441
http://forums.ni.com/t5/LabVIEW/Read-data-of-embedded-web-page/m-p/1243792#M525335
http://forums.ni.com/t5/LabVIEW/Use-LabVIEW-to-login-username-and-password-into-device-IP/m-p/651832...
and of course http://en.wikipedia.org/wiki/Basic_access_authentication
What I'm trying to achieve here is use LabVIEW 2010 to rip text from multiple pages of a local router via WiFi, parse the text, and make decisions based on the values retrieved.  Unfortunately some of the information I need requires a password be entered (just a password, "admin") before being granted access to to the pages I want.  Pretty typical for routers though I think.
Ripping the text and parsing the strings is not a problem (though it can be a drag), I'm having difficulty with logging in to the router with LabVIEW.  As I said the password is "admin" and unfortunately I have to assume that the username is also "admin". 
This is the page I'm trying to get to after logging in: http://192.168.0.1/user/advanset.html?sid=824643 (I'm not trying to post a link for anyone to click on, just showing the URL)
So using MikeS81's WebPageAuthentication_LV85.vi (found here: http://forums.ni.com/t5/LabVIEW/Read-data-of-embedded-web-page/m-p/1251826#M527035) I can get the source html, but not the info from the page.
Therefore I'm trying to use MikeS81's WebPageAuthentication_LV85.vi in conjunction with the Rip Web Text.vi (sorry, can't seem to find a link to it right now, but I did get it form the NI LabVIEW forums).  When Rip Web Text is incorporated the browser returns
"The website declined to show this webpage
 HTTP 403
  Most likely causes:
This website requires you to log in."
I don't know a whole lot about web pages or TCPIP or HTML but I'm assuming that "sid=" in the URL means I'm being granted temporary access via some kind unique ID that expires, a cookie or something.  The VI is attached to this post, please let me know if you have any thoughts on it.  I've changed the indicators to use the output I received as the default values (so you should be able to see what I've gotten back in the VI).  It seems to me that I should be trying to rip the text before closing the TCP connection opened for authentication, if this is incorrect please let me know.
I know it may seem that I'm Frankensteining some serious crap together here, hope this doesn't end up in the Rube Goldberg thread... but I'll understand if it does. 
Thanks, and have a great weekend.
Attachments:
WPAuth_RipWT_2010.vi ‏74 KB

Christopher:
A couple of thoughts regarding your POST VI:
The 501 error makes it sound like (and I'm just guessing here) we have a header parameter off. LabVIEW is probably just assuming a set of defaults or not even specifying the header, whereas your browser is probably turning around and re-using the headers it got from the GET requests.
I think it might be worth manually inserting the header data (you can get it from the tamperdata capture) line by line into the request (see screen shot).
Here's what looks like an/the important POST:
POST http://192.168.0.1/ajax_request?Endpassword=admin Load Flags[LOAD_BYPASS_CACHE LOAD_BACKGROUND ] Content Size[-1] Mime Type[text/html]
Request Headers:
Host[192.168.0.1]
User-Agent[Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13]
Accept[*/*]
Accept-Language[en-us,en;q=0.5]
Accept-Encoding[gzip,deflate]
Accept-Charset[ISO-8859-1,utf-8;q=0.7,*;q=0.7]
Keep-Alive[115]
Connection[keep-alive]
X-Requested-With[XMLHttpRequest]
Referer[http://192.168.0.1/]
Cookie[ddddd=; dddddddd=; lct_remember_me=; mac_remember=; lct_psw=; checked=]
Pragma[no-cache]
Cache-Control[no-cache]
Content-Length[0]
Response Headers:
Content-Type[text/html]
Date[Tue, 17 Mar 2009 15:38:22 GMT]
Connection[close]
Here's the beginning of how we'd put in the header data:
Also, in your VI, it looks like there's a space in the request data: /ajax_request ?Endpassword=admin.
Try changing it to /ajax_request?Endpassword=admin.
The issue may just be that space, so try that first...
Caleb Harris
National Instruments | Mechanical Engineer | http://www.ni.com/support

Similar Messages

  • Need help accessing the router web page.  I have been tol...

    Need help accessing the router web page.  I have been told my router is acting like a switch and the IP address is not in the proper range.  I have tried reseting the router (hold for 30 sec and unplug for 5 mins).  Didn't work.
    thanks

    What router are you using?  Almost all Linksys routers use 192.168.1.1 as the default local IP address, but there is at least one that uses 192.168.16.1 , namely the WTR54GS  (not the WRT54GS).
    You need to try again to reset the router to factory defaults.
    To reset your router to factory defaults, use the following procedure:
    1) Power down all computers, the router, and the modem, and unplug them from the wall.
    2) Disconnect all wires from the router.
    3) Power up the router and allow it to fully boot (1-2 minutes).
    4) Press and hold the reset button for 30 seconds, then release it, then let the router reset and reboot (2-3 minutes).
    5) Power down the router.
    6) Connect one computer by wire to port 1 on the router (NOT to the internet port).
    7) Power up the router and allow it to fully boot (1-2 minutes).
    8) Power up the computer (if the computer has a wireless card, make sure it is off).
    9) Try to ping the router. To do this, click the "Start" button > All Programs > Accessories > Command Prompt. A black DOS box will appear. Enter the following: "ping 192.168.1.1" (no quotes), and hit the Enter key. You will see 3 or 4 lines that start either with "Reply from ... " or "Request timed out." If you see "Reply from ...", your computer has found your router.
    10) Open your browser and point it to 192.168.1.1. This will take you to your router's login page. Leave the user name blank (note: a few Linksys routers have a default user name of "admin" (with no quotes)), and in the password field, enter "admin" (with no quotes). This will take you to your router setup page. Note the version number of your firmware (usually listed near upper right corner of screen). Exit your browser.
    If you get this far without problems, try the setup disk (or setup the router manually, if you prefer), and see if you can get your router setup and working.
    If you cannot get "Reply from ..." in step 9 above, your router is dead.
    If you get a reply in step 9, but cannot complete step 10, then either your router is dead or the firmware is corrupt. In this case, use the Linksys tftp.exe program to try to reload your router with the latest firmware. After reloading the firmware, repeat the above procedure starting with step 1.
    If you need additional help, please state your ISP, the make and model of your modem, your router's firmware version, and the results of steps 9 and 10. Also, if you get any error messages, copy them exactly and report back.
    Please let me know how things turn out for you.
    Message Edited by toomanydonuts on 01-21-2008 04:40 AM

  • Safari Won't Load Router Web Page

    Safari 7.0.3
    OS X 10.9.2
    Mac Mini 2009
    I recently got a new router: TP-Link TD-W8980
    If I enter the router's IP address into Safari, I see the router's login page.
    After I log in, all I see is a blank page.
    If I close the blank page and type in the router's IP address again (before the session times out), the router's web page displays normally.
    If I use Chrome, the behavior is normal.
    Why do I have to close the page and reopen in order for Safari to properly display the router web pages?
    Message was edited by: Buadhai - Correct spelling of Chrome.

    I''m sorry, but I don't understand your question at all.
    This is from the router's setup guide:
    3.2 Quick Installation Guide
    With a Web-based utility, it is easy to configure and manage the TD-W8980 N600 Wireless Dual Band Gigabit ADSL2+ Modem Router. The Web-based utility can be used on any Windows, Macintosh or UNIX OS with a Web browser, such as Microsoft Internet Explorer, Mozilla Firefox or Apple Safari.
    1. To access the configuration utility, open a web-browser and type the default address http://192.168.1.1 in the address field of the browser.
    How would Safari know how to get to the router's web server if you didn't enter the IP address in the browser's address field?

  • HT204291 I am trying to connect my new Apple TV to a wifi connection at a hospital.  This apple tv connects at home but is unable to at hospital bc of a web page authentication agreement page.  All of my iOS devices are connected.

    I cannot connect my apple tv to the wifi bc of the web page authentication.  When signing my other iOS devices on the network an immediate web page pops up with a user agreement to check and agree.  How can I do this with the new apple tv?

    Welcome to the Apple community.
    Unfortunately that isn't possible with the Apple TV, the Apple TV does not have a web browser.

  • Create PDF From Web Page - Authenticated SharePoint Sites generate "Authorization Failure" error

    We have several authenticated sharepoint sites on our intranet, and we are trying to create a PDF of a site (x levels down) using the Acrobat create PDF from web page feature.  When you try to create a PDF from a non-sharepoint, authenticated website, a login prompt appears asking for login credentials.  However, when you try to use the same feature on an authenticated sharepoint site, you do not get prompted for credentials and instead get an Authorization Failure error.  the popup says "Error: Nothing Done".  We have successfully PDF'd anonymous sharepoint sites on the WWW.  Has anyone successfully PDF'd an authenticated SharePoint site? 
    Thanks in advance,
    -Richard.

    I am having the same issue AND none of my pages or files require a UserID or Password. My issue appears to be something with the domain because a and b work just fine and produce a PDF file while item c does not work and produces the error msg.
    http://www.dot.wi.gov/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.dot.state.wi.us/projects/neregion/151/index.htm works just fine and produces a PDF file.
    http://www.wisconsindot.gov/projects/neregion/151/index.htm produces an error msg. ‘Nothing done’.Error info. - Authorization Failure    http://www.wisconsindot.gov/projects/neregion/151/index.htm
    [email protected]

  • EA4500 router web page not accessible for use.

    I cannot login, web page pops up but its only a blue screen with help icon and privacy icon at bottom nothing is interactive. Have tried mylocalrouter.com, linksyssmartwifi.com. When uninstall software, hard reset router then reinstall software I get to the the login icon but when try to login it shows blue screen as previously mentioned in message. Router works but at a reduce speed and cannot manage any options. Tried updating firmware but once I unzip there is no way to install the .ssa firmware file

    Hi mtebaldi, have you tried using another browser and computer? If you're using a wireless computer, you may also try to turn the wireless computer WiFi switch to off then connect it directly to the router using an Ethernet cable. Once done, reaccess UI again. You may also try to access UI using "myrouter.local". 

  • Browser cannot display E3200 router web page from ethernet connection but can from wireless

    I have installed my E3200 downstream from the Verizon FiOS Actiontec (going the other way disables FiOS functions).
    1.  My browser can get to the E3200 (192.168.1.2) when connected via wireless, but not when connected via ethernet cable.
         How do I fix that?
    2. When going to connect wirelessly, the 2GHz connection is visible but the 5 GHz connection is not
         (I have them named differently).
         How do I see both wireless connections?

    My browser cannot get to my E3200 setup web page from a wired Ethernet connection (wireless works fine).
    The Linksys E3200 (1Gb ethernet, “n” wireless) is installed downstream from a Verizon FiOS Actiontec router (10/100 ethernet, “g” wireless).
    I cannot put the E3200 upstream from the Verizon router because I would lose FiOS TV capabilities.
    The E3200’s fixed IP address is 192.168.1.2 (the Verizon router is 192.168.1.1)
    I cannot change the subnet (e.g. to 192.168.2.x)
    Clearing the browser cache and rebooting both routers doesn’t help.
    Both computers tested have dual band “n” network adapters.
    So... wireless connection works fine, but I cannot get to the setup page via wired ethernet.
    Help?

  • WRT54GS Router, Web Page, ipconfig/release to ipconfig/renew

    I am trying again, from the DSL ISP Web Page, I get to Step 4, Renew computer's IP address. Click run, put in cmd, and it brings up the black box to ipconfig. I do as it says to do. type in ipconfig/release click enter, Step 5, then ip address shows 0.0.0.0, then it says to type in inconfig/renew, click enter, which I do, but for the IP address and Default Gateway, it shows 192.168.2.1 for both, and not 192.168.1.1, like it shows for both on the Web Page. Then I go to Step 6, do that, then to Step 7, and do that, then to Step 8, Step 9, and Step 10, and do those. But when I do Step 10, and click connect, then a box pops up, and says it can not find my IP Server. Any idea of why?
    Thanks!
    veryconfused

    Do not use the set-up CD to configure your router, you should try to configure it manually...
    Reset your router first...
    Press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router using this link

  • Router web page not working

    My dad has a WRT54GS that we can't get the WEP key set. We can get onto the router site but when I click on the wireless tab it goes to an empty page.  I thought it may be popups so I turned all that stuff off but it didn't work.  Can anybody help me?  Thanks

    To view the router's web pages:
    You do not need an Internet connection. The router's "web pages" are built into the router.
    Use Internet Explorer, it usually works.
    JavaScript must be enabled.
    Use a computer that is wired to the router.
    In the non-working computer, temporarily turn off your software firewall.
    Point your browser to 192.168.1.1 , then login to your router. Your user name should be left blank. Your password is "admin" (with no quotes), unless you changed it.
    If you are using Zone Alarm, right click on the ZA icon in the system tray (lower right corner of screen) and then click "Shutdown ZoneAlarm", and see if this fixes your problem. If this does not work, try the following with Zone Alarm: Open the ZAISS control center, go to Privacy, then temporarily turn off Ad Blocking and Cookie Control, and see if that fixes your problem.
    If you are using Noton Internet Security with the Add-on Pack, be sure to turn off the Pop-up Blocker, and the Ad blocker. Some users have reported that they needed to uninstall the entire Norton Add-on Pack.
    If you cannot get anything at 192.168.1.1 then perhaps this is not your router's address. Go to "Start" > All Programs > Accessories > Command Prompt.
    A black DOS box will appear. Type in "ipconfig" (with no quotes), then hit the Enter key. Look at the "Default Gateway". Is it 192.168.1.1 ? Point your browser to the "Default Gateway", then login to your router.
    If the above fails, disconnect your modem from the router, and try again. If this corrects your problem, then most likely you have a "modem-router" rather than an ordinary modem. Report back with this problem, and also state the make and exact model number of your modem (not the router).
    If all of the above fails, power down your entire system, unplug it from the wall, wait one minute, then power up and try again.
    If all of the above tips fail, then reset the router to factory defaults: Power down the router and disconnect all wires from it. Wait one minute. Power up the router, allow it to fully boot (1-2 minutes), then press and hold the reset button for 30 seconds, then release the button and allow the router to reset and reboot ( 2-3 minutes). Power down router. Wait one minute. Connect one computer, by wire, to a LAN port on the router. Boot up system. It should work.
    If the reset does not fix your system, then you need to download and install (or re-install) the latest firmware for your router. After the firmware upgrade, you must reset the router to factory defaults, then setup the router again from scratch. If you saved a router configuration file, DO NOT use it.

  • Router web page not showing correctly

    I use WRT54G wireless router. When trying to change options on my router, I go to 192.168.1.1 in a browser and put in my password. When the site opens, it resembles what it is supposed to look like but is kind of messed up. Here is a picture of what my page looks like: http://img383.imageshack.us/my.php?image=linksysbb5.png With it like that it is almost impossible to change anything. I'm not sure what's wrong. I've looked around for help on the web but most of the things I've found is people who just can't even connect to the site. By the way, I don't know if this has anything to do with it but when running the CD to hookup the modem, once it gets to the part where it asks for the password, I put it in and once the loading bar comes up I get a pop-up saying I have low or no internet connection for a second or two then goes away. It continues to load but nothing happens and eventually the password thing pops up again and it starts all over. Any help is appreciated, thanks.
    Message Edited by pb93 on 03-08-2008 09:41 AM

    I'm not sure but could the problem possibly be with the router itself. I checked many other topics of people reporting the same problems as me and the person above me. They all seem to be the same WRT54G wireless routers and all seem to have been reported at least within the last couple weeks. It seemed like the help given too never really helped the problem. I'm sure it's not the browser because I have had the same result on all that I've tried or the firewall because I have had that off while trying just like everyone else who seemed to have the problem.

  • I cannot get wireless security setup via Linksys router web page

    Help.  I'm trying to reset my router.  I've gottne through everything and all is setup and working but now I cannot setup the wireless security.  I'm go to Wireless>Wireless Security, when trying to choose security mode I can select it, the page refreshes, but just goes back to 'Disabled'.  I can't get pat this, I get nothing.  Is my router fried and it just won't allow me to setup security?  I've tried everything.  I'm on a Mac, but dont believe that should make a difference.  Is there another setting somewhere?  I did change my password and name of the router, but that's all the farther I got.  I've followed all of the steps and get stuck on the page and drop down.  Driving me nuts!  

    I opened in Firefox and was actually able to choose WPA, the settings opened up and then the page locked up, refresh took me back to 'disabled'.  Reopened in a new window, opened up again, entered the WPA shared key and after spinning for over 5 minutes, lost my connection and had to log in to join my now secure network...finally!!!!!!  Thank you.  

  • Why is Web Page Auth on MAC Filter Failure not working on Anchor Controller?

    Hi,
    I have implemented a Guest WLAN solution as per the recommended design from Cisco. We have two internal WiSM2 controllers providing services for Internal secure SSIDs. Both these controllers are members of a Mobility and RF management group.
    Two 5508 controllers have been installed in our DMZ for resilience and have been placed into a separate Mobility group. All controllers (internal and external) have been linked together as mobility neighbours in a full mesh and a new SSID for Web Guest traffic has been anchored to the controllers in the DMZ.
    Web page authentication works perfectly fine, but I cannot for the life of me get the MAC filtering override to work, i.e. if a MAC address is present, do not redirect to the splash page for web auth.
    I can get MAC auth working by iteself, but not with the Layer 3 option selected for web page auth on mac filter failure.
    I know I can get around this by just creating two separate SSIDs. But the business is used to just having the one SSID for all guest traffic.
    Is this a known limitation when anchoring SSIDs to controllers in the DMZ ?

    Hi Nicolas,
    I guess they changed their mind to add this fix in 7.0MR3. Now the fix will be in 7.2 release planned to be release in FEB.
    There is a documentation bug opened to add this to configuration guide :
    CSCtw48727    Document CSCts54424. Limitations webauth on mac filter fail for anchor
    Regards..Salil
    CSCtw48727    Document CSCts54424. Limitations  webauth on mac filter fail for anchor

  • WIRELESS IOS AUTONOMOUS + Guest to internet + authenticated via a web page.

    Hi to all,
    need to configure with:
    - AUTONOMOUS IOS AP (NOT use a wireless controller)
    - CISCO IOS router 2811
    a guest wireless network that only has access to the internet through a vlan WITH HTTP/S GUEST AUTHENTICATION WEB PAGE ?
    I know:
    "web authorization isn't native to the access point. It is a web authorization portal that is on the WLC."
    "Cisco IT example: At present we use GRE tunnels for guest traffic which was a part of legacy guest networking solution we had at Cisco for several years. GRE tunnels get terminated at one the DMZ routers. Each request for a guest connection to the Internet gets authenticated over https by either a Cisco Building BroadBand Services Manager (BBSM) or a Cisco NAC Appliance. Guests get provided with an access code in advance as we use a web based portal/application to produce those. Also we support guest connections for both wireless and wired clients from some switch ports. "
    I am looking for any suggestions (are there any feature on CISCO IOS ROUTER for "HTTP/S GUEST AUTHENTICATION WEB PAGE").
    Thanks.
    Roberto Taccon

    If the router with auth proxy is the one providing the ip address on the client connecting to the autonomous AP, it may be an option.
    Local AAA will not work with auth proxy as then there you are no longer in a scenario where the router is proxy.
    You could get a WLC526 (small controller) to get the web auth, or a free radius server (many out there) that will run on a linux server and then use the http proxy feature.
    I personally recommend you to get a WLC, in the long run you will benefit of many more features and you will be able to very easily add other access points.
    The WLC526 is the smaller one:
    http://www.cisco.com/en/US/docs/wireless/controller/526/1.5/configuration/guide/2_add_contr.html

  • IS THERE ANYONE LEGITIMATE THAT KNOWS WHY I CAN CONNECT TO INTERNET WITH A IBOOK G3 AND NOT OPEN WEB PAGES?  ONLY HAPPENS WITH MY LANDLORDS ROUTER THAT HE HAS PROVIDED THE PASSOWRD FOR. ONLY WAY I CAN CONNECT TO HIS SERVICE IS IF HE HAS FIREWALL DOWN. WE

    PLEASE ONLY RESPOND IF YOU KNOW HOW TO CORRECT THE PROBLEM. I'M CONNECTED TO MY LANDLORDS INTERNET VIA AN EXT NETGEAR ROUTER, PASSWORD PROTECTED, THAT HE HAS PROVIDED WITH A G3 IBOOK. FULL SINGAL, CAN'T OPEN WEB PAGES. HAS NEVER HAPPENED BEFORE.

    That's because your landlord probably is using WPA2 encryption or 802.11g or 802.11n wireless.  The iBook G3 lacks support for WPA2 encryption, which is much stronger than WEP and the original WPA.   It also only has support for 802.11b.     If you want to join a newer router with a secure firewall, get an 802.11g or better wireless ethernet bridge.
    P.S. Please avoid from using all UPPERCASE.     It is hard to read, and in internet etiquette it means you are attempting to shout and be rude.  I'm sure that was not your intent.  So please avoid from doing that again.  Thank you.
    P.P.S.  10.7.1 can't run on an iBook.   Are you sure you have an iBook and 10.7.1 is on it?  If it doesn't say iBook on your screen frame, or Apple menu -> About This Mac doesn't say Mac OS X 10.7.1, it is not 10.7.1, or an iBook.    MacBooks, which replaced iBooks in 2006, and later came out with Core2Duo and Core i processors, are the only Apple notebooks that can run 10.7.1.

  • Authentication on web page fails as though nothing was submitted

    When using either my iPad or iMac to access a newsletter that I subscribe, I frequently have issues logging in.  The operator of the web page says to clear cookies, cache, etc. to solve the problem.  That rarely works.  This problem was sporadic before I moved to Australia in June, it is almost certain every time now.  I had a spell a couple weeks ago when the iPad was working again, I may have reset and restored it, don't remember.  It is not working again.  On the iMac it plain doesn't work.  I have installed Ubuntu in Virtual Box VM and used Firefox in that VM but it has the same result.  Firefox under the Latest Mac OS doesn't work and I have tried Opera too.  On the iPad Chrome fairs no better than Safari.  I saw a reference to servers using Microsoft ISA in 2010 using some sort of utility for hahndling authentication that Apple doesn't support ( NTHML ???), is that a possibility and if so what is the work around?  It really ***** using my Telstra 7" touch phone with Android to access the web page.  Android is still a poor (capability wise) substitute for the Apple iOS.

    Got a couple follow up questions.  Postiing the response here.
    1.  Please send us step by step method on how to recreate the problem, and the URL of the PDF file that shows the issue.
    * Write a simple console application that does nothing but starting a browser. Browser URL set to any web site with embedded PDF. I believe I used a sample on Adobe's site for last test.
    2. Is everyone in your company experiencing the same issue?
    * Yes, everyone can be affected.
    3. Does the error show up on any PDF or just the embedded PDF?
    * Only embedded.
    4. Does the problem occur with Firefox?
    * Not browser specific.
    5. Do you have any other version of Reader or Acrobat installed on the same system?
    * No, clean test box. Tested with 10.0.0 first. Failed. Then cleaned up install and installed 10.1.3. Cannot repro with 9.5.
    Root cause appears to be Protected Mode. If I disable that, it works.

Maybe you are looking for

  • Vendor changes report

    Dear All              Any standared report available for vendor creation changes Regards Suresh

  • Multi Select Prompt in BI Publisher

    Hi All, Is it possible to create a multi select Prompt in OBIP which is similar to OBIEE multi select prompt? Default multi select prompt given in OBIP is not user friendly. By any means If any one has created much user friendly multi select prompt p

  • Coke free songs error

    Hey everyone im hoping somebody can help me. I loaded all 5 of my free songs (through Coca Cola promo) onto my itunes a while back. I thought I had used them all, but when I go to the itunes store and try and download a song it says: 'Your free song

  • Transaction Debugging

    Hi,     While trying to post some data in any sap transaction you are getting an error message issued by sap. How can you quickly debug and get to the point where the error message is being issued?

  • Is there any way to recover my ipod's data after water damage ?

    My ipod fell in water (toilet). I turned it on to see if it still worked (I know I shouldn't had to) and the screen hardly worked. The morning after nothing worked so i put it in a sock beside the refrigerator ( warm and dry place).I've been constant