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.
How to send info to a website for login
Page 1 of 16 Replies - 590 Views - Last Post: 19 November 2012 - 07:47 PM
Replies To: How to send info to a website for login
#2
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
AsyncTask
HTTP Post
Reading the response data from the post
#3
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
#4
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?
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?
#5
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).
#6
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>
#7
Re: How to send info to a website for login
Posted 19 November 2012 - 07:47 PM
I figured it out thanks!
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|