Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7405905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:28:29+00:00 2026-05-29T05:28:29+00:00

I am developing an Android app that ties into a web app thats also

  • 0

I am developing an Android app that ties into a web app thats also being built in parallel the problem is, the services web side are being built behind htpasswd auth. Which I believe is going to hinder my ability to make an android app that will work with the RESTful services we are building into the web side for the mobile side.

So my question there is and I am a complete newb with Android development as is, is there a means where I can keep the htpasswd auth on the development server where everything else is being set up while bypassing the auth, or provide the credentials some how for it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:28:30+00:00Added an answer on May 29, 2026 at 5:28 am

    A website that has a portion of itself locked down to a username and password like that is using what is known as Basic Authentication. You just need to put the Base64 encoded username:password into the authentication field of the HTTP header.

    You can use the HttpURLConnection to do this for you. See this link and scroll down to HTTP Authentication. Basically what you do is when you make the HttpURLConnection to contact your REST service you provide it with the username and password and it will handle the rest for you. Same thing if you want to use HttpClient instead of HttpURLConnection. Either would work. If you want info on how to do it with HttpClient just google “Android HttpClient Basic Authentication”

    One thing to keep in mind. when you use basic authentication the username and password are sent in the web request and can be seen by third parties. You should only use Basic Authentication over a HTTPS connection.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an Android App that gets some data from a web server,
I'm developing an Android App that should send an image to my ASP.NET Web
I'm developing an Android app that fetches a web page from a website which
I am developing an Android app that connects to the Facebook Open Graph via
i am developing an android app that fetches an RSS feed, now i want
I am developing an Android app that needs to receive specific informations for each
I am developing one android app in that i have to post some message
I'm developing an iPhone (and later Android) app that has real-time features, i.e. when
I am developing an Android app (see screenshots). I have a layout that looks
I am developing an Android app (see screenshots). I have a layout that looks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.