XverhelstX Well-Known Member Licensed User Longtime User May 1, 2011 #1 Hello there, I am currently working on my new project, and I need some help. I need to send a HTTP Post request to this url for example: http://example.com/ and I need to give parameters in the message body. How do i do this? for example this: <InputURL>[input image URL]</InputURL> <InputType>[input type (PDF/TIF/PNG/JPG/etc.)]</InputType> Code: Dim request As HttpRequest request.InitializePost("http://example.com/", request.SetContentType("text/xml") request.Timeout=50000 If HttpClient1.Execute(request, 1) = False Then Return ProgressDialogShow("Please wait...Searching") Now, I don't know what I need to put in the inputstream and length, and how to handle the parameters.. Can you please help me? It would me really much appreciated. Thanks XverhelstX
Hello there, I am currently working on my new project, and I need some help. I need to send a HTTP Post request to this url for example: http://example.com/ and I need to give parameters in the message body. How do i do this? for example this: <InputURL>[input image URL]</InputURL> <InputType>[input type (PDF/TIF/PNG/JPG/etc.)]</InputType> Code: Dim request As HttpRequest request.InitializePost("http://example.com/", request.SetContentType("text/xml") request.Timeout=50000 If HttpClient1.Execute(request, 1) = False Then Return ProgressDialogShow("Please wait...Searching") Now, I don't know what I need to put in the inputstream and length, and how to handle the parameters.. Can you please help me? It would me really much appreciated. Thanks XverhelstX
Erel B4X founder Staff member Licensed User Longtime User May 3, 2011 #21 Code: in = respone.GetInputStream Upvote 0