When my MOD5441X application is built with SSL Support enabled, the HTTP webpage won't load. I'm not using any secure features of SSL.
I've stripped my Ethernet code down to the following:
void InitEnet()
{
InitializeStack();
GetDHCPAddressIfNecessary();
OSChangePrio( USERMAIN_PRIO );
EnableAutoUpdate();
EnableTaskMonitor();
StartHTTP();
SetNewPostHandler( WebIncomingPost );
OldHttpHandler = SetNewGetHandler( MyHttpHandler );
}
int MyHttpHandler( int sock, PSTR url, PSTR rxb )
{
printf( "HTTP Using Old Handler for: %s, from: %s, with socket %d\r\n", rxb, url, sock );
return OldHttpHandler(sock, url, rxb);
}
[code]
When I attempt to load the page using Chrome, this is the result.
Output: "HTTP Using Old Handler for: GET /index.html, from: index.html, with socket 31"
Note that the most recent tools changed the default page from index.htm to index.html.
You are trying to load index.html, does it exist?
Or is there only an index.htm ???
That was to set the .html extension when .htm was the default, since most web developers use .html. For your purposes change it to:
default_page = "index.htm";
You can modify the comphtml flags directly. See screenshot Add the flag "-dindex.htm" if you want the default file to be index.htm instead of index.html
Screenshot_20201012_103850.png (70.78 KiB) Viewed 8025 times