Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 08:51 25 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : WebMite HTML POST problem?

Author Message
Malibu
Senior Member

Joined: 07/07/2018
Location: Australia
Posts: 228
Posted: 06:16am 02 Jul 2024
Copy link to clipboard 
Print this post

G'day all  

So, yeah, I know that my first problem is Opera... I'm learning slowly that it's a less than optimal web browser - but at least it's good to bullet-proof some of my code by trying to get around it's quirks!

I'm running WebMite 5.09.00RC5 with a mod as requested by Peter in the C++ source

A long story short, I've been having some issues with MY web code, so I loaded Geoff's garden controller and all the associated web pages with the same result.

Using Firefox, with a POST from the 'config' page, I get this...
  Quote  POST /config0.html HTTP/1.1
Host: 192.168.0.114
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 232
Origin: http://192.168.0.114
Connection: keep-alive
Referer: http://192.168.0.114/config0.html
Upgrade-Insecure-Requests: 1

Title=Schedule+1&Enabled=on&StartDay=&StartMonth=&EndDay=&EndMonth=&RunDays=&RunHours=&RunMints=&RunStart=Sw0&ValveR0=&ValveR1=&ValveR2=&ValveR3=&ValveR4=&ValveR5=
&ValveR6=&ValveR7=&RunIncrease=&TempThresh=&SubmitForm=+SAVE+CHANGES+

...all good with correct headers, etc.

With the same action from Opera, I get this...
  Quote  Title=Schedule+1&Enabled=on&StartDay=&StartMonth=&EndDay=&EndMonth=&RunDays=&RunHours=&RunMints=&RunStart=Sw0&ValveR0=&ValveR1=&ValveR2=&ValveR3=&ValveR4=&ValveR5=
&ValveR6=&ValveR7=&RunIncrease=&TempThresh=&SubmitForm=+SAVE+CHANGES+
02-07-2024 15:44:44  Sending error 404 page not found

...with all the correct info, but no headers...

I can 'get around' that problem (ie: lack of headers) by matching another string instead of the "POST" string - and the '404 error is just a result of not finding the correct string in the interrupt.
...but, everytime I use Opera with a POST, I also get this error...
  Quote  Internal error in tcp_server_recv - Attempting recovery


...and it's baffling me!
Am I missing something in my HTML coding, or is there something else going on?

(P.S: I'm 100% sure the C++ mods I've done are not related)

[Edit: Sorry, the dreaded 'too wide for the browser' problem... I put in a CrLf to fix it]
Edited 2024-07-02 16:33 by Malibu
John
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024