locked
Login to website from batch exe RRS feed

  • Question

  • User1203305613 posted

    Hi,

    In our website mails would be triggered when login to website and append a string to url

    Example if our website is yourapp.aspx we need to login and append schedulereports yourapp.aspx/schedulereports .

    We want a batch program (exe,Windows Application ) to do the functionality, so that we can schedule it to run hourly .

    We like to pass CompanyCode,UserId and Password as parameters .

    Could you please guide me on this .

    Thanks,

    Kalyan

    Tuesday, August 27, 2019 5:04 PM

Answers

  • User475983607 posted

    It's impossible to answer this question without knowing how your security works.

    Why do you want to use this approach if you already wrote the code to perform this task?  Why not simply execute the code in an exe rather than a web application?  You could place the exe on the web server and simply schedule a windows task.  Very simple and secure.

    You might need to refactor the code into a library if you want to share the code between the exe and web application. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 27, 2019 6:37 PM

All replies

  • User475983607 posted

    It's impossible to answer this question without knowing how your security works.

    Why do you want to use this approach if you already wrote the code to perform this task?  Why not simply execute the code in an exe rather than a web application?  You could place the exe on the web server and simply schedule a windows task.  Very simple and secure.

    You might need to refactor the code into a library if you want to share the code between the exe and web application. 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 27, 2019 6:37 PM
  • User1203305613 posted

    Hi Mgebhard,

    Thanks for your pointers , this is a third party application we are maintaining, as pointed by you they provided us with a Service  and Task but somehow the task wouldn't connect to the website , we are   troubleshooting  this with the Vendor.

    I am looking if there are any easy options to achieve the same .

    As suggested by you in previous post we can look into Load Test options (like Selenium ,Jmeter) ,thanks again for all your inputs.

    Thanks,

    Kalyan

    Wednesday, August 28, 2019 6:43 AM