Intent.ACTION_VIEW with https://username:password@host

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

Intent.ACTION_VIEW with https://username:password@host

Postby 3c5x9 » Tue Jul 28, 2009 8:10 pm

Hi guys,
I have a strange problem.

I have an App in which i provide a shortcut to open a specific webpage. this website has serveral version on how it is configured. The website can be reachable via https or https, with or without a passwordprotection (std. http-auth).

Im using this snipped to open the Browser:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Uri uri = Uri.parse(profile.buildURL());
  2.  
  3. context.startActivity(new Intent(Intent.ACTION_VIEW, uri));
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


profile.buildURL() return a string in following type:
- http://hostname:port
- http://user:password@hostname:port
- https://hostname:port
- (not working) https://user:password@hostname:port

The first three are working, but the last one not :) It opens he browser like the first three, but then theres a popup in witch i have to enter the username and password.

Is it not supported by HTTPS at general to provide username/password in the url or is it a bug in the serverstack or in android?

regards
3c
3c5x9
Freshman
Freshman
 
Posts: 3
Joined: Fri Mar 06, 2009 8:27 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 3 guests