tks bro!
Invalid "Content-Type: custom" create issues with some captcha solving services
-
I'm not sure, "why" added the "Content-Type: custom" header element into the reCaptcha/funcaptcha module.
It's a not standard content-type in this case some captcha solving services block the request based on this header element.
The response clear:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Bad Request</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Bad Request - Invalid Header</h2> <hr><p>HTTP Error 400. The request has an invalid header name.</p> </BODY></HTML>How it's possible to remove?
Thanks,
Jtercs -
@jtercs said in Invalid "Content-Type: custom" create issues with some captcha solving services:
I'm not sure, "why" added the "Content-Type: custom" header element into the reCaptcha/funcaptcha module.
It's a not standard content-type in this case some captcha solving services block the request based on this header element.
The response clear:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Bad Request</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Bad Request - Invalid Header</h2> <hr><p>HTTP Error 400. The request has an invalid header name.</p> </BODY></HTML>How it's possible to remove?
Thanks,
JtercsDear BAS developers, I guess you are busy, but a quick response takes a lot.
I found the issue here:
\modules\ReCaptcha\engine.js ---> line: 409
\custom\modules\ReCaptcha\engine.js ---> line: 407http_client_post(BAS_SolveRecaptcha_Url + "/createTask", ["data",data], {"content-type":("custom"), "encoding":("UTF-8"), "method":("POST")})!But unfortunatelly, I'm not able do anything while this data encoded into Engine.dll and the BAS use that file instead the pure JS files.
My question still actually: How to remove invalid Content-Type?
Thanks for your time!