Hello There, Guest!
View New Posts  |  View Today's Posts
[VB.Net] problem multi post + httpwebrequest read ip

  • 0 Vote(s) - 0 Average


11-07-2016, 03:00 PM #1
sharokurdi
Junior Member
**
Posts: 1 Threads:1 Joined: Oct 2016 Reputation: 0

Exclamation  problem multi post + httpwebrequest read ip
hello

  need  help     i want make   login to ubnt device but  i have  2  problem  
first)////////////
httpwebrequest   not read ip  

when i put  ( 192.168.1.1)  give me  error  getresponse
but  work  with   site  just  need  work with ip adress  ... 

secend)/////////

Code:
http://192.168.1.1/login.cgi

POST /login.cgi HTTP/1.1
Host: 192.168.1.1
User-Agent: Mozilla/5.0 (Linux; U; Android 4.4.4; Nexus 5 Build/KTU84P) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://192.168.1.1/login.cgi?uri=/
Cookie: ui_language=en_US; AIROS_1342513E1430=ec51b09f797dd1711dab10839d2761f2
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1
Content-Type: multipart/form-data; boundary=---------------------------18986730528707
Content-Length: 349
-----------------------------18986730528707
Content-Disposition: form-data; name="uri"

/
-----------------------------18986730528707
Content-Disposition: form-data; name="username"

ubnt
-----------------------------18986730528707
Content-Disposition: form-data; name="password"

ubnt
-----------------------------18986730528707--

HTTP/1.1 302 Found
Location: /
Set-Cookie: force_password_change=deleted; expires=Thursday, 20-Aug-15 12:31:12 GMT
Set-Cookie: show_security_warning=deleted; expires=Thursday, 20-Aug-15 12:31:12 GMT
Set-Cookie: ui_language=en_US; expires=Tuesday, 19-Jan-38 03:14:07 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Date: Fri, 19 Aug 2016 12:31:13 GMT
Server: lighttpd/1.4.39


this  is main Form 

11-11-2016, 06:39 PM #2
AceInfinity
Developer
*******
Administrators
Posts: 9,733 Threads:1,026 Joined: Jun 2011 Reputation: 76

RE: problem multi post + httpwebrequest read ip
I use that brand of AP's, great stuff :) I quickly recognized it when I seen 'ubnt' in there. Why are you doing this though rather than logging in via SSH? You want to login to the controller? Not the physical device? If this is for an AP, the default login is 'ubnt' and 'ubnt' I believe, until you do an inform which will set the password for you and default to the admin user, but it's been a while since I last did that, and adopted an AP on my server.

I usually just login via SSH manually can connect to the mca client, then use the set-inform command to point it back to my server, because it requires twice to actually take it for some reason (known problem). I force an update and reboot, and set it again.

You're not dealing with an AP, but I'm almost positive SSH should be available. It'll be much better than logging into the webserver.
This post was last modified: 11-11-2016, 06:45 PM by AceInfinity.


Microsoft MVP .NET Programming - (2012 - Present)
®Crestron DMC-T Certified Automation Programmer

Development Site: aceinfinity.net

 ▲
 ▲ ▲




Forum Jump:


Possibly Related Threads...
Thread Author Replies Views Last Post
  [help]httpwebrequest/HtmlAgilityPack html parse? ѕα3єкα 18 8,290 02-25-2017, 05:23 PM
Last Post: AceInfinity
Star  Multi-Client Server Async Socket Example KoBE 165 154,286 09-10-2016, 05:17 AM
Last Post: R4TK3N
   Read before posting KoBE 3 2,906 06-13-2015, 07:01 AM
Last Post: astadipati
  Minimum Path Sum Problem at CodeEval KoBE 3 2,164 01-05-2015, 11:31 AM
Last Post: KoBE
   [Source] Twitter Login/Post Tweet Example (Without API, SDK or Webbrowser) idb.exe 10 10,295 06-06-2014, 11:16 PM
Last Post: hoangseo


Users browsing this thread: 1 Guest(s)