I've just quickly created a working example of how to use the reCAPTCHA using the WebSpeed. I'm using version 11.7, but the code should still work for version 10.1b (Unless 10.1b does not support SSL for socket connections).
Jimbobnz/ABL-reCAPTCHA
The code is basic and should not be used in a production environment blar, blar, blar, just becuase it is sooooo basic.
I was able to reproduce the Error 411 by simply commenting out the "Content-Length
:" parameter in the HTTP header request.
So, it might be worth exporting the HTTP header to disk just to double check that it is syntactically correct. i.e. are you missing a double-colon ":" at the end of the parameter name?
To get the code working:
Just change the'secret'and 'sitekey' your values in the reCAPTCHA.html.
reCAPTCHAValidate.p is hardcode to work directly with Google. I can't remember is 10.1B supports JSON, so you will have to do some string parsing to get the data values.
Copy the reCAPTCHAValidate.p & reCAPTCHA.html into your ProPath of your WebSpeed Agent.