• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Automate the login process to a website

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


I have a requirement like this
I need to login to a website and generate a report based on some condition and save it as a file.How can i automate this process of logging and generation of the file.what are the possible ways of doing this.
 
Ranch Hand
Posts: 62
Android PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

do you really want to do this ? In my opinion this is a high security risk, then again it depends on the Application. Where do you want to save the login data ? On the client side ? In a cookie ?

 
Saloon Keeper
Posts: 28660
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
On a Linux machine, you can do all that using curl or the "wget" command, and I just wrapped up a project that did a whole lot of that, in fact. On Windows, you'll have to shop around, since Windows out-of-the-box toolset is much smaller. One option is to install cygwin, which will effectively add a Linux environment to your Windows machine.

Another option, that eliminates the security risks that come with keeping a userid/password in a plain text file on the client machine is to set up the server to accept security certificates, generate a cert for the client, and deploy it on the client machine. You'd still use something like wget to make the web request, but the cert wouldn't be in plain text and it would only work on the authorized client machine.
 
reply
    Bookmark Topic Watch Topic
  • New Topic