When i read the on_sock_data_arrival event, it fires perfectly on the smtp and netbios events, but if i post a http request to the device, this function doesnt notice. Why is this? By reading this event i could implement security in my web application, but this way, the only login method i know is to post the sessionid in the GET section of the HTTP request.
I'd defenately want to read the whole http request, so maybe i can use cookies or read the browsers version or just anything to increase security.
sub on_sock_data_arrival
if sock.localport = 80 then
doevents
'do something with the http header or something
end if
end sub
<? include "global.tbh"
file_to_socket(sock.num,"html_top.html")
?>
klik op een item aan de linkerkant om de juiste instellingen te doen.
<? include "global.tbh"
doevents
file_to_socket(sock.num,"html_bottom.html")
?>
I have a breakpoint at the doevents statement in the second part of the code just before the next file_to_socket function.
Somehow, one of these files does reach the breakpoint (and thus displays the footer on the website) but all the other files dont reach this point, but just break before the second part of code statements.
I dont get why, except different filenames, there should be a difference.
I am having problems embedding an image 'g.png' in my html file that is compiled in TIDE.
I am using the html code and including the file g.png in the Resource files. The output will only display the alternate "green led' and not the image.
Anyone have any clue how I can load the image?