CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Determining Post Data of Web Page

    I am trying to post data to a secured website. I have the code to do it, but I don't know how to determine what post data needs to be sent. I would assume it's username and password, but is it "UserName", "user_name", "login_name", "name", etc. ? Is there a tool that can determine this? Like give a website to this tool and it tells you what post data the site is looking for.

    I've tried Google, but it always gives code on how to use the GET and POST methods, which I already know how to do.

    If no tool, maybe there is code to do this?
    Last edited by eclipsed4utoo; July 22nd, 2009 at 03:23 PM.

  2. #2
    Join Date
    Jul 2006
    Posts
    297

    Re: Determining Post Data of Web Page

    Download the firebug plug-in for firefox. Go to the site you're trying to make a post to, and inspect the forum that its posting, look at all the input fields and write down the values. If this is an ajax post then its even easier because firebug will show you all the post data.

  3. #3
    Join Date
    Feb 2005
    Location
    Denmark
    Posts
    742

    Re: Determining Post Data of Web Page

    Tamper Date http://tamperdata.mozdev.org/ for FireFox is also very handy for such things, as you can look at the request/response prior to actually submitting it to the site. (It is also a great tool to circumvent client side validation for testing your web-solutions )

  4. #4
    Join Date
    Oct 2003
    Location
    .NET2.0 / VS2005 Developer
    Posts
    7,104

    Re: Determining Post Data of Web Page

    "it's a fax from your dog, Mr Dansworth. It looks like your cat" - Gary Larson...DW1: Data Walkthroughs 1.1...DW2: Data Walkthroughs 2.0...DDS: The DataSet Designer Surface...ANO: ADO.NET2 Orientation...DAN: Deeper ADO.NET...DNU...PQ

  5. #5
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: Determining Post Data of Web Page

    Thanks for all the replies.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured