Hi,
in my app I have an HttpServer
in event HandleRequest I need to read the parameters, and I use this code
This work very well if I call it with GET method, but if I call it with POST method I don't read any parameter
How can I read POST parameters ?
I make POST call with "multipart/form-data" content type.
If I call my server http with a normal browser (for example Firefox) and an HTML page, it works.
If I call my server http with .NET program (with WebRequest object or WebBrowser object) it don't works.
.NET code is correct, if I try to call others POST server, the answer is correct, it tell me what is the parameters and it is ok
Thanks
Sergio
in my app I have an HttpServer
B4X:
Private server As HttpServer
B4X:
Log("Mtd: " & Request.Method)
Log("URI: " & Request.RequestURI) 'handle the request based on the URL
Log("Cell: " & Request.GetParameter("cell"))
Log("Text: " & Request.GetParameter("testo"))
How can I read POST parameters ?
I make POST call with "multipart/form-data" content type.
If I call my server http with a normal browser (for example Firefox) and an HTML page, it works.
If I call my server http with .NET program (with WebRequest object or WebBrowser object) it don't works.
.NET code is correct, if I try to call others POST server, the answer is correct, it tell me what is the parameters and it is ok
Thanks
Sergio