Hi Djordje,
In 7.28 I have added a new method to the server, called SetRequestMethodType. This is called when an incoming packet is first recived to determine the "Verb" of the packet. Supported (recognized) verbs are
GET, HEAD, OPTIONS, POST, PUT, DELETE, PROPFIND, FIND, PROPPATCH, PATCH, REPORT, TRACE, CONNECTA person could extend this method to accept more Verbs if you wanted to.
So in your code you can test
p_web.RequestMethodType - which will be one of
NetWebServer_POST equate(1)
NetWebServer_GET equate(2)
NetWebServer_PUT equate(3)
NetWebServer_DELETE equate(4)
NetWebServer_HEAD equate(5)
NetWebServer_OPTIONS equate(6)
NetWebServer_TRACE equate(7)
NetWebServer_CONNECT equate(
NetWebServer_PATCH equate(9)
NetWebServer_REPORT equate(10)
NetWebServer_FIND equate(11)GET, DELETE, HEAD, POST and PUT are handled "automatically". For the other verbs you need to decide how you want them to be processed. there is a (new) method called ProcessVerb which allows you to customize how each Verb will be processed.
I _suspect_ that in many cases you will process "as if it was a get" - but returning a different value for differnet verbs. For example, you want to handle OPTIONS. In your case the URL is almost certainly pointing to a NetWebPage - which in turn you could add code to to send back something when it gets the OPTIONS verb. So in WebHandler, in ProcessVerb, you might have
case Self.RequestMethodType
of NetWebServer_OPTIONS
self._HandleGet()
if self.AllDone then return.
self._HandleGetRest()
EndHopefully this is enough for you to keep going.
Cheers
Bruce