Need help in accesing Authenticated URl in Android
<p>I want to parse the data from RSS Feed that is password protected.. If i try to parse the data its throwing "File not found Exception"</p>

<p>Here is my code:</p>

<pre><code>try {
                DBF = DocumentBuilderFactory.newInstance();
                DB = DBF.newDocumentBuilder();
                url_val = new URL("http://admin:admin@dev.quaddeals.com/university-of-illinois/androids/city.rss");
            } catch (MalformedURLException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
                try {
                    dom = DB.parse(url_val.openConnection().getInputStream());
                } catch (SAXException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                } catch (IOException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
                elt = dom.getDocumentElement();
                NodeList items = elt.getElementsByTagName("item");
                for (int i = 0; i &lt; items.getLength(); i++) {
                    Node item = items.item(i);
                    NodeList properties = item.getChildNodes();
                    for (int j = 0; j &lt; properties.getLength(); j++) {
                        Node property = properties.item(j);
                        String name = property.getNodeName();

                        if (name.equalsIgnoreCase("title")) {
                            cityTitle = property.getFirstChild().getNodeValue();                                
                        }
                        if (name.equalsIgnoreCase("id")) {

                            cityId = property.getFirstChild().getNodeValue();
                        }
                    }
                    title.add(cityTitle);
                    id.add(cityId);
                }
                   VALUE1 = new String[title.size()];
                    Iterator&lt;String&gt; itc = title.iterator();
                    while (itc.hasNext()) {
                        l1++;
                        VALUE1[l1] = itc.next().toString();                 
                    }

                    VALUE2 = new String[id.size()];
                    Iterator&lt;String&gt; it1c = id.iterator();
                    while (it1c.hasNext()) {
                        m1++;
                        VALUE2[m1] = it1c.next().toString();
                    }

        } catch (Exception e) {



        }
</code></pre>

<p>My Log Cat shows Error as follows:</p>

<p>02-21 23:20:48.893: WARN/System.err(19206): java.io.FileNotFoundException: <a href="http://dev.quaddeals.com/university-of-illinois/androids/city.rss" rel="nofollow">http://dev.quaddeals.com/university-of-illinois/androids/city.rss</a></p>

<p>02-21 23:20:48.893: WARN/System.err(19206):     at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1064)</p>

<p>02-21 23:20:48.893: WARN/System.err(19206):     at com.fsp.quaddeals.DealCities$SelectDataTask_Deals.doInBackground(DealCities.java:341)</p>

<p>02-21 23:20:48.893: WARN/System.err(19206):     at com.fsp.quaddeals.DealCities$SelectDataTask_Deals.doInBackground(DealCities.java:1)</p>

<hr>

<p>If i enter this URL  <a href="http://admin%3aadmin@dev.quaddeals.com/university-of-illinois/androids/city.rss" rel="nofollow">Link</a></p>

<p>in Browser it will ask for the authentication after that it will Redirected to the Orginal RSS FEED where my Parsing data exists...</p>

<p>I want to parse the data in the this page.. How can i access this password protected page and parse the data?</p>

<p>Whether Android Supports SSL connections..</p>

<p>Please help me.. Thanks in Advance..</p>
