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

  • Home
  • SEARCH
  • 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 6621407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:15:36+00:00 2026-05-25T21:15:36+00:00

Upon using the code samples below, I try to send a HTTP request to

  • 0

Upon using the code samples below, I try to send a HTTP request to validate a username and password entry to a PHP script (returning either 1 or 0 in an echo).

Using HTTP Assistant, testing the HTTP Post request has the expected results… But for some reason, when logging the ‘res’ String (the HTTP response) in the java code, I get a blank PHP/Index page:

<!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML3.2Final//EN"><html><title>Indexof/</title></head><body><h1>Indexof/</h1><ul><li><ahref="cgi-bin/">cgi-bin/</a></li></ul></body></html>

Code: HomeActivity.java and Http.java

Have I done something wrong code-wise? Or is this a server issue?

  • 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-25T21:15:37+00:00Added an answer on May 25, 2026 at 9:15 pm

    What you are seeing there is the standard webserver listing of a directory. So you probably have the wrong URL you’re hitting. Is there any redirect magic involved?

    [edit] As you have controll of the PHP page yourself, do the following: Edit it so that it accepts parameters per GET and try to call the page via your android browser with the username and password as GET parameters . If that works, you’ve at least a clue that it’s possible from your phone.

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

Sidebar

Related Questions

Here is the database-design http://www.flickr.com/photos/michaelstitt/6077647604/in/photostream/ that I decided upon -- using the help from
Having CSS layout issues with Internet Explorer 7 (big surprise). Upon using the Developer
I'm using callables quite often , and I've stubled upon a question that irritates
I am parsing a tab seperated list using a NSScanner based upon each line
I'm using NetBeans to develop some simple applications to solve puzzles . Upon launching
I've stumbled upon a problem. I'm using 'FormBorderStyle.None', and when I click the icon
I've got an ASP.NET app using NHibernate to transactionally update a few tables upon
I currently have a thread that I created using CreateRemoteThread(). Everything works great. Upon
During many, sometimes inundating, debugging sessions using DDD, I stumble upon loops. And I
I'm using this code to display a list of platforms. If a platformID was

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.