Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:47 28 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 : WEB TRANSMIT CODE a%, XXX

Author Message
carlschneider
Senior Member

Joined: 04/08/2023
Location: South Africa
Posts: 158
Posted: 08:41pm 22 Aug 2023
Copy link to clipboard 
Print this post

Hi there

I note that the WEB TRANSMIT CODE a%, nnn command does not provide an option for the plain text description nor is there a canned one in the command.

When using WEB TRANSMIT CODE a%, 404 the transmitted header is
HTTP1.0 404 \r\n\r\n

Wireshark captured packet:-
Packet # Time             Source                  Destination          Protocol     Length Info
753         98.010096.  XXX.XXX.XXX.XXX XXX.XXX.XXX.YYY HTTP          54       HTTP/1.0 404

Hypertext Transfer Protocol
   HTTP/1.0 404\r\n
   \r\n
   [HTTP response 1/1]
   [Time since request: 0.240804000 seconds]
   [Request in frame: 694]
   [Request URI: http://xxx.xxx.xxx.yyy/]

This tends to leave the browser blank faced :) (Safari and Chrome)

When using
OPTION TCP SERVER PORT 80

Consider putting the following files on the A: drive to avoid browser associated 404 errors loading the web server.

favicon.ico
apple-touch-icon-precomposed.png
apple-touch-icon.png

These can all be zero sized. It just reduces the server overhead a little bit in my opinion.

Link here for more in depth information on the apple flavour of favicon https://mathiasbynens.be/notes/touch-icons

A more informative File Not Found html response can be compiled and sent with the WEB TRANSMIT PAGE, with a slightly increased server overhead, especially if one is coding using these commands on the WebMite.

Hope this helps.
Cheers Carl                                                        
Retirement is tough on Hobbies without a day job
 
Print this page


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

© JAQ Software 2024