• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Login to a website

 
Sarath Koiloth Ramath
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I am developing a small program to login to a website created using PHP,and to download some data from that website.I had not yet started doing these.I need your help to start this.

1)I want to know how can I login to a PHP website only knowing the URL.I created a username and password.I check by login with that user name.The data is not sending using query string.In the url there is no change is happening.

Please give Some idea to proceed.

Thanks in Advance
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. This is certainly not an advanced question.
2. The Apache commons HttpClient toolkit is probably your best bet for emulating a browser client. Read the tutorial.

Bill
 
Venkat Sadasivam
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpUnit also handy for these type of requirements.

http://httpunit.sourceforge.net
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like jWebUnit (also on SourceForge). It operates at a higher level than either HttpClient or HttpUnit, so you have to write less code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic