File: httpget.xml

package info (click to toggle)
phing 3.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 9,340 kB
  • sloc: php: 59,826; xml: 9,770; sql: 78; makefile: 39; sh: 14
file content (61 lines) | stat: -rw-r--r-- 2,124 bytes parent folder | download | duplicates (3)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" ?>
<project name="test for httpget task" default="recipient">
    <property name="tmp.dir" value="./../../../../tmp/httpget" />

    <!-- Actual tasks will be copied here from other targets -->
    <target name="recipient" />

    <target name="missingURL">
        <httpget dir="${tmp.dir}" />
    </target>

    <target name="missingDir">
        <httpget url="http://example.com/" />
    </target>

    <target name="error404">
        <httpget url="http://example.com/missing" dir="${tmp.dir}" />
    </target>

    <target name="mkdir">
        <mkdir dir="${tmp.dir}" />
    </target>

    <target name="rmdir">
        <delete dir="${tmp.dir}" />
    </target>

    <target name="filenames">
        <httpget url="http://example.com/foo.bar" dir="${tmp.dir}" filename="foobar.txt" />
        <httpget url="http://example.com/foo.bar" dir="${tmp.dir}" />
        <httpget url="http://example.com/foo.bar" dir="${tmp.dir}" />
    </target>

    <target name="configuration">
        <httpget url="http://example.com/" dir="${tmp.dir}"
                 followRedirects="true" proxy="socks5://localhost:1080/" sslVerifyPeer="false" />
    </target>

    <target name="authentication">
        <httpget url="http://example.com/foo.bar" dir="${tmp.dir}" authScheme="basic" authUser="luser" authPassword="secret" />
    </target>

    <target name="nested-tags">
        <httpget url="http://example.com/foo.bar" dir="${tmp.dir}">
            <config name="timeout" value="15" />
            <header name="user-agent" value="Phing HttpGetTask" />
        </httpget>
    </target>

    <target name="config-properties">
        <property name="phing.http.proxy" value="http://localhost:8080/" />
        <property name="phing.http.timeout" value="20" />
        <httpget url="http://example.com/foo.bar" dir="${tmp.dir}"/>
    </target>

    <target name="config-properties-empty">
        <property name="phing.http.proxy" value="${does.not.exist}" />
        <property name="phing.http.timeout" value="20" />
        <httpget url="http://example.com/foo.bar" dir="${tmp.dir}"/>
    </target>
</project>