![]() |
|
|||||||
| OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
my networking all works fine, but when I get my ip from a public wifi service there is a pop up webpage agreement that requires you to select "Yes" before you actually get an Ip.
does anyone know how to accept this either manually or automatically via command line. TIA all of my ifconfig stuff appears to be fine, it just wont server my ip until I click yes. |
|
||||
|
You could script HTTP receipt and response with nc(1), or probably more easily with net/curl. As each hotspot's implementation will be different, you may have to have multiple scripts for multiple sites.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
ok thanks, Ill work on something, not real sure what the best way to go about it tho, heh
thanks Last edited by phyro; 10th January 2013 at 05:59 PM. |
|
||||
|
nc(1) has no dependencies, net/curl depends on devel/gettext, devel/libidn, and to the best of my recollection their dependency chains do not include java. For scripting curl, there are perl, python, and Tcl interfaces.
If you need java, devel/jdk 1.7 is available as a jdk or jre package.
__________________
OpenBSD LiveCDs/LiveDVDs Last edited by jggimi; 10th January 2013 at 06:01 PM. Reason: clarity |
|
|||
|
tried
Code:
printf "GET / HTTP/1.0\r\n\r\n" | nc host.example.com 80 I get the html headers and such but im not sure how to "click accept" lol |
|
|||
|
What you need to do is look at the structure of the URL sent back to the server in response to clicking "Accept" as that is how the server is notified that you accept whatever conditions/limitations they enforce.
|
|
||||
|
I'm going to recommend you use Google, Bing or whatever your favorite Internet search engine is and search with two keywords: "curl" and "hotspot". The top hit on Google recommend a specific curl script that you could copy/paste for command line based web-browser-push-button scripting.
Personally, I don't do any of this when I use public access WiFi. I just use a browser.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Quote:
sigh the only reason this is such a pita is b/c its a fresh install with nothing on it in a foreign network. Thanks tho.. Ill check it out. |
|
||||
|
If you need it, there is a built-in (text only) browser: lynx(1). It can "push" buttons as well, if necessary.
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
I did actually try lynx (and I can navigate to the disclaimer) but when the actual popup box appears it says "java script not enabled" and from what I can tell it doesn't support it.
thanks tho |
|
||||
|
Java and JavaScript are not the same technologies at all. They only share 4 letters.
__________________
OpenBSD LiveCDs/LiveDVDs |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Xorg Screens & pkgsrc Help | SL6-A2000 | NetBSD General | 1 | 18th March 2012 07:11 PM |
| Switching wsconsole screens with Alt-Fn in NetBSD and OpenBSD | IdOp | Guides | 2 | 1st September 2011 02:36 PM |
| How to get 'make' to accept all defaults for dependent packages | Xeon | FreeBSD Ports and Packages | 1 | 12th February 2009 12:54 AM |
| secure ssh with public key | milo974 | OpenBSD Security | 11 | 9th July 2008 04:52 PM |
| OS to run in a public computer? | Sunnz | Off-Topic | 31 | 23rd May 2008 05:47 PM |