JavaScript
  Home arrow JavaScript arrow Programmatic POST Requests with JavaScript...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Programmatic POST Requests with JavaScript: Form Emulator in Action
By: Alejandro Gervasio
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 13
    2005-08-03

    Table of Contents:
  • Programmatic POST Requests with JavaScript: Form Emulator in Action
  • The first step in coding the example: listing the program’s functions
  • The second step in coding the example: defining the sample files
  • The third step in coding the example: running the form emulator program
  • The complete form emulator script: listing the full source code

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Programmatic POST Requests with JavaScript: Form Emulator in Action


    (Page 1 of 5 )

    In the fourth and final part of our series, we examine the form emulator we built in the third part in the context of a practical example that puts the program to work. The form emulator can be used as a simple testing bed to help you build more robust and safer Web applications.

    Introduction

    This is the last part of the series “Programmatic POST Requests with JavaScript.” Welcome back. Throughout the previous article, I offered a full explanation of how to build a JavaScript-based form emulator program, aimed specifically at sending post requests to a given host, in order to simulate the use of Web forms for submitting potentially dangerous information.

    Indeed, this http-based hacking method has become extremely popular due mainly to the extensive use of JavaScript to make asynchronous http requests without page reloads. Certainly, it’s rather pointless to judge a technical tool itself within an ethical sense, either as evil or good-intended, since the responsibility for its usage relies completely on the user’s purposes.

    However, very often in real conditions, it’s useful to consider how hacking techniques may be used to attack websites, and accordingly to improve the overall security, whether within the application and/or at administrative levels. As a result, hopefully safer Web programs will be written and more efficient security strategies will be implemented.

    So, returning to the form emulator script, in the previous article I defined all the required functions to make the program fully functional. Therefore, in this last part I’ll set up a practical example that puts the program to work and demonstrates that post Web forms may be easily emulated, either with malicious purposes or for use as a simple testing bed.

    Now that the article’s objectives have been defined, it’s time to go forward and start coding the example.

    More JavaScript Articles
    More By Alejandro Gervasio


       · The final part of the series implements a fully-functional form emulator, which...
     

    JAVASCRIPT ARTICLES

    - Comparing Fields and Customizing Error Messa...
    - Checking Numbers and File Extensions with jQ...
    - Validating Digits and Dates with jQuery`s Va...
    - Validating Ranges, Emails, and URLs with jQu...
    - More Uses for the jQuery Tooltip Plug-in`s b...
    - Building Image-Based Tooltips with the jQuer...
    - Using the jQuery Tooltip Plug-in`s bodyHandl...
    - Using Rangelength, Min and Max with the Vali...
    - Using Minlength and Maxlength with the Valid...
    - Modifying Tooltip Coordinates with the jQuer...
    - Applying a Fade Out Effect with the jQuery T...
    - Tracking Mouse Movements with the jQuery Too...
    - Checking Online Forms with the Validator jQu...
    - Nested JavaScript Functions as Objects
    - The jQuery Tooltip Plug-in







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek