#1 2016-08-11 05:41:27

reg4app
Member
Registered: 2016-05-16
Posts: 147

Get and set the URL of an HttpClient control at runtime

I have a HttpClient Control name:"HttpClient3",and Set the "Url":'testurl'

if run

AlertBox "[HttpClient3.Url]" "info"

and it will show "undefined "

if run

AlertBox "HttpClient3.Url" "info"

it will show "HttpClient3.Url"

therefore if

SetVar "[HttpClient3.Url]" "http://192.168.1.4:4242/test/[Typeahead1.Value]/[Input1.Value]/[KeyValue]/[t3]" "String"

seem would not set the "HttpClient3.Url" property

??was I missing something???


Joshua.Y

Offline

#2 2016-08-11 06:07:46

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Get and set the URL of an HttpClient control at runtime

Hello Joshua,

As you can see in the HttpClient control reference, the "Url" variable is a "designtime" variable, convenient to set the URL during designtime. In runtime you can access the URL using the control "HttpClient.Request.url" variable.

On the other hand, remember we have also the HttpSetUrl action in order to set the URL of the HttpClient control, in addition to use the refered control "HttpClient.Request.url" variable.

Hope this information can be useful for you.

Offline

#3 2016-08-11 07:01:58

reg4app
Member
Registered: 2016-05-16
Posts: 147

Re: Get and set the URL of an HttpClient control at runtime

sorry,I did not carefully read the manual


Joshua.Y

Offline

#4 2016-08-11 12:31:22

David
Admin
From: Alcobendas, Madrid, Spain
Registered: 2015-04-21
Posts: 1,660
Website

Re: Get and set the URL of an HttpClient control at runtime

Hello,

reg4app wrote:

sorry,I did not carefully read the manual

No problem! This time... big_smile

Offline

Board footer

Powered by FluxBB


Copyright ©2018 DecSoft. All rights reserved.