Debugging Forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Super Steve

    Debugging Forms

    I'm trying to debug a form handler (written in PHP) and in the past
    I've used a tool like cg-eye at http://www.htmlhelp.com/tools/cg-eye/cgeye.cgi
    to test things like this.

    However now cg-eye doesn't seem to be sending form data to my form
    processing script.

    I've looked around to see if there are any other online tools that let
    you specify a URL to submit a request to, along with a list of field
    name / value pairs, and that then shows the result, but I can't find
    anything! There are plenty of HTTP header viewers, but they don't let
    you submit form data with the request.

    I've also tried looking for a program that I could run locally on my
    computer but couldn't find anything suitable (plenty of sniffers but
    nothing that would submit a request).

    Does anyone know of anything that I could use for this kind of thing?
  • Steve Swift

    #2
    Re: Debugging Forms

    Super Steve wrote:
    I've looked around to see if there are any other online tools that let
    you specify a URL to submit a request to, along with a list of field
    name / value pairs, and that then shows the result, but I can't find
    anything! There are plenty of HTTP header viewers, but they don't let
    you submit form data with the request.
    While I don't recommend it for production work, if you modify your form
    so the ACTION is http://www.swiftys.org.uk/cgi-bin/test then you will
    see an analysis of all the form data submitted with your request.

    Of course, doing this you have to trust that my server won't record the
    data that you submit, and use it for nefarious purposes. As it happens,
    it doesn't record anything (I've got better things to do with my time)
    but then he would say that, wouldn't he?

    --
    Steve Swift


    Comment

    • Super Steve

      #3
      Re: Debugging Forms

      On Jul 23, 5:22 am, Steve Swift <Steve.J.Sw...@ gmail.comwrote:
      Super Steve wrote:
      I've looked around to see if there are any other online tools that let
      you specify a URL to submit a request to, along with a list of field
      name / value pairs, and that then shows the result, but I can't find
      anything!  There are plenty of HTTP header viewers, but they don't let
      you submit form data with the request.
      >
      While I don't recommend it for production work, if you modify your form
      so the ACTION ishttp://www.swiftys.org .uk/cgi-bin/testthen you will
      see an analysis of all the form data submitted with your request.
      >
      Of course, doing this you have to trust that my server won't record the
      data that you submit, and use it for nefarious purposes. As it happens,
      it doesn't record anything (I've got better things to do with my time)
      but then he would say that, wouldn't he?
      >
      --
      Steve Swifthttp://www.swiftys.org .uk/swifty.htmlhttp ://www.ringers.org .uk
      I tried submitting to your script and received the following back:

      <HEAD><BODY BGCOLOR=#FFFFD0 ><TITLE>CGI Test</TITLE></HEAD>
      <FONT SIZE=+3><U>CGI/1.1 test script report:</U></FONT><BR>
      </TABLE></TABLE></TABLE></TABLE></TABLE></TABLE></TABLE></TABLE></
      TABLE></TABLE>
      <H2>Syntax Error</H2>
      <H3>Routine not found</H3>
      21 *-* If method = 'POST' then call PostCheck

      Looks like there's something wrong with your script?

      Comment

      • Steve Swift

        #4
        Re: Debugging Forms

        Super Steve wrote:
        <H3>Routine not found</H3>
        21 *-* If method = 'POST' then call PostCheck
        >
        Looks like there's something wrong with your script?
        Well, you could be the first person to call that routine using "POST"
        for quite a while. Now fixed. Thanks for the heads-up!

        --
        Steve Swift


        Comment

        • Scott Bryce

          #5
          Re: Debugging Forms

          Super Steve wrote:
          I've looked around to see if there are any other online tools that let
          you specify a URL to submit a request to, along with a list of field
          name / value pairs, and that then shows the result, but I can't find
          anything!
          What prevents you from writing one yourself?

          Comment

          Working...