views:

30

answers:

3

Is it possible to write a script that will login to an application using uname/pwd?

the username/password are not passed in through POST (they dont come in the URL)

Basic steps I am looking for are:

  • Visit url
  • enter uname/pwd
  • click a button
  • click a link
  • get the raw html to make sure it does not have 500 error

Is that possible to do in any language?

Please point me to some examples as well

+1  A: 

Java: HTTPUnit

Python: urllib

PHP: cURL

Dave Jarvis
HTTPUnit is such a fail!!!kept getting `com.meterware.httpunit.dom.HTMLDocumentImpl not found` when I had placed the damn httpUnit.jar in the classpath and could see HTMLDocumentImpl.class in it.
josh
http://httpunit.sourceforge.net/doc/manual/installing.html#dependencies
Dave Jarvis
A: 

Java? examples? – josh 3 mins ago

There are no examples of using HTTPUnit in Java. You are like totally out of luck, dude.

msw
A: 

Hi,

I have done something like this but with a third party app called iMacro

Hope it helps.

TE:-D