6 Replies - 729 Views - Last Post: 19 November 2012 - 07:47 PM

#1 CP3  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 53
  • Joined: 21-October 12

How to send info to a website for login

Posted 06 November 2012 - 07:44 PM

I have a school website that just requires an ID number to login and look at some class information. I want to write an app that automatically sends an ID number to that server and retrieves the data. It is an Apache server.

I have some Android app experience, just wondering how to go about this.
Is This A Good Question/Topic? 0
  • +

Replies To: How to send info to a website for login

#2 H3R3T1C  Icon User is offline

  • Android Expert
  • member icon

Reputation: 277
  • View blog
  • Posts: 757
  • Joined: 30-March 07

Re: How to send info to a website for login

Posted 06 November 2012 - 11:45 PM

Use an asyntask to post data to the server and retrieve its response data!
AsyncTask
HTTP Post
Reading the response data from the post
Was This Post Helpful? 1
  • +
  • -

#3 kabuto178  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 130
  • Joined: 29-January 11

Re: How to send info to a website for login

Posted 07 November 2012 - 10:01 AM

I too have used async and httppost to do a login system for an app i am currently working on
Was This Post Helpful? 1
  • +
  • -

#4 CP3  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 53
  • Joined: 21-October 12

Re: How to send info to a website for login

Posted 19 November 2012 - 01:30 PM

So I tried and read through those.

My current problem is that I go to the page, call it .com/something. It asks you to confirm you are a student by clicking a radio button "yes", then hitting a "submit" button. Now a new page loads but the URL stays the same at .com/something.

so how do I get around this?
Was This Post Helpful? 0
  • +
  • -

#5 TheGDeveloper  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 93
  • Joined: 22-September 09

Re: How to send info to a website for login

Posted 19 November 2012 - 05:42 PM

you have to read the html code of the page and see how it passes the http parameters (obiusly with the http post method).
Was This Post Helpful? 0
  • +
  • -

#6 CP3  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 53
  • Joined: 21-October 12

Re: How to send info to a website for login

Posted 19 November 2012 - 06:59 PM

Here is the form script
<form action="grades.php" method="post">
					<p>Warning. You are entering restricted area. Only students who are signed up for the class can use this page. The system is monitored and all activity is logged. If you are not authorised to use the system, or if any abuse is detected, you will be permanently denied further access to this system. Do you want to proceed?</p>
					<p><input name="answer" type="radio" value="yes">yes<input name="answer" type="radio" value="no">no</p>
					<p><input type="submit" name="Submit" value="Submit"></p>
				</form>


Was This Post Helpful? 0
  • +
  • -

#7 CP3  Icon User is offline

  • D.I.C Head

Reputation: 4
  • View blog
  • Posts: 53
  • Joined: 21-October 12

Re: How to send info to a website for login

Posted 19 November 2012 - 07:47 PM

I figured it out thanks!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1