silvioprog / brookframework

Microframework which helps to develop web Pascal applications.
https://github.com/risoflora/brookframework
GNU Lesser General Public License v3.0
171 stars 37 forks source link

How to read request custom header #135

Closed 2keda closed 6 years ago

2keda commented 7 years ago

hello, i'm new with brook,

when client send request with modified header, like SomeHeader=SomeValue.

how can i get/read SomeHeader=SomeValue request header with brook, i used HttpRequest.GetCustomHeader('SomeHeader') but i got empty result.

oh, and how to get/read client request body

Thanks.

leledumbo commented 7 years ago

how can i get/read SomeHeader=SomeValue request header with brook, i used HttpRequest.GetCustomHeader('SomeHeader') but i got empty result.

Headers are sent with : as key-value separator, not =.

oh, and how to get/read client request body

HttpRequest.Content for plain request body (useful for something you have to process later such as JSON/XML) or simply Fields property for form based one (both application/x-www-form-urlencoded and multipart/form-data).

silvioprog commented 6 years ago

Closing due to no more activities on the issue. Please feel free to reissue if the problem persists.