Solved

Debugging recaptcha html form with python cgi

Posted on 2013-02-06
3
605 Views
Last Modified: 2013-12-25
I have an html form with a recaptcha image that posts to a python cgi script. The form elements are captured (they print to the form) with the exception of the recaptcha challenge/response, which always appear empty on submit.

The form was working only a short time ago and I've made no changes to apache2 or to my LAN or firewall since then. I understand that I can insert an error parameter into the challenge/response api, but I can't find an example in google docs.

Let me know how to fix this thanks
reg-cgi.txt
reg-html.txt
0
Comment
Question by:sara_bellum
  • 3
3 Comments
 

Author Comment

by:sara_bellum
ID: 38862873
Just to make sure that you have all the info you may need, I also attach the config file that is imported into the above python cgi script. It's straightforward - the primary purpose is to illustrate how I've complied with google's guidance in using my reCaptcha account.
config-py.txt
0
 

Accepted Solution

by:
sara_bellum earned 0 total points
ID: 38964339
Fixed. The form action must precede the table definition on the html page that is imported (the same rule applies for other languages such as php).
0
 

Author Closing Comment

by:sara_bellum
ID: 38964344
Of course I'd rate my own solution as excellent! This took a while but it works.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here I am using Python IDLE(GUI) to write a simple program and save it, so that we can just execute it in future. Because when we write any program and exit from Python then program that we have written will be lost. So for not losing our program we…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question