Page 1 of 1

How to ? Get Html Page Data

PostPosted: Wed Sep 28, 2011 3:54 pm
by rainer / dsp
var url = 'http://www.sitetovisit.abc'
var _result_html = plugins.http.getPageData(url);

I need to add a http header to this request (browser id) - but how to do this ?

thank you very much

Rainer Boehm


Servoy 6.x

Re: How to ? Get Html Page Data

PostPosted: Wed Sep 28, 2011 5:09 pm
by jcompagner
Create a Client object:
plugins.http.createNewHttpClient()

and create a getrequest from that one, where you can set the header and so on.