Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

TWebHttpRequest info

 Post Reply Post Reply
Author
Wadsworth Larry G View Drop Down
New Member
New Member
Avatar

Joined: 27 Jul 2018
Posts: 10
Post Options Post Options   Quote Wadsworth Larry G Quote  Post ReplyReply Direct Link To This Post Topic: TWebHttpRequest info
    Posted: 27 Jul 2018 at 10:12pm
Hi,

I've downloaded the trial version of the Web Core.  It's great! Have reviewed the PDF documentation that came with it, but am not finding any info on "TWebHttpRequest".  I want to use it to retrieve info from my server using Php, then load the form and have the user update the details and post it back to my server again using Php.

Is there any documentation/examples available?

Thanks,

Larry Wadsworth

Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 7779
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 28 Jul 2018 at 10:57am
It was an oversight TWebHttpRequest was not yet added in the docs. We'll work on this asap.
Using TWebHttpRequest is simple though. It allows you to make HTTP GET,POST,PUT,... requests. The HTTP command is set with the command property. If you perform a post, set the data to post via PostData. When needed, you can add custom headers. Then call WebHttpRequest.Execute to perform the request and you can handle the response from the OnResponse event that will return the response data via a parameter.
Back to Top
Wadsworth Larry G View Drop Down
New Member
New Member
Avatar

Joined: 27 Jul 2018
Posts: 10
Post Options Post Options   Quote Wadsworth Larry G Quote  Post ReplyReply Direct Link To This Post Posted: 28 Jul 2018 at 11:32am
Thanks Bruno,

Will give it a try.  I found the demo "SimpleService".  Will use your suggestions and what I saw with "SimpleService" and give it a try.

Larry Wadsworth

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down