-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
33 lines (26 loc) · 817 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
This UObject allow you to:
- Set an http proxy
- Make a GET http request
- Use xpath to query page content
My irc bot should use that module soon.
Dependencies:
- curlpp : http://sourceforge.net/projects/curlpp/
- tinyxpath : http://tinyxpath.sourceforge.net/
Compile:
- Set environment var URBI_ROOT to your urbi directory
- Set environment var TINYXPATH_ROOT to your tinyxpath directory
- Install curlpp
- make
Run:
make run
Debug xpath queries:
Compile with "make debug" and run
Use in urbi :
var h = UHttpXPath.new;
[00017287] UHttpXPath_0x414c2f38
h.setHttpProxy("http://my-http-proxy.com", 3128); // url, port
[00024972] 1
h.performRequest("http://my-page.com"); // request this page
[00036083] 1
h.xPathQuery("//my/xpath/query"); // query page content
[00047194] "my string result"