- Jun 6, 2020
- 11,559
- 4,422
I've been banging at this one for a while, read a lot of forums, tutorials, searched this forum and all and all.
Pretty much the active parts of the code below worked for someone else, so, I can't figure out now why this isn't working.
As below : this hooks to my site with a PHP script that should be getting the POSTed data, then, stuffing it into the Mysql data table.
When the PHP pops there is no data, so the POST array has not been populated.
In the code : I have put in comment lines (about mid way) showing which line is causing a 400 html page error : BAD REQUEST
The code below is my preferred method
[CODE lang="b4x" title="Hook web site post...
Pretty much the active parts of the code below worked for someone else, so, I can't figure out now why this isn't working.
As below : this hooks to my site with a PHP script that should be getting the POSTed data, then, stuffing it into the Mysql data table.
When the PHP pops there is no data, so the POST array has not been populated.
In the code : I have put in comment lines (about mid way) showing which line is causing a 400 html page error : BAD REQUEST
In both cases then the http.POST fails.Incidentally, I have an alternative sketch to do this and that returns a HTML code 200 (success) BUT there is no data in the POST array either. It also uses http.POST which is where the 200 code is returned to >>int httpResponseCode = http.POST(httpRequestData);<<
Click to expand...
The code below is my preferred method
[CODE lang="b4x" title="Hook web site post...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید