~zorba-coders/zorba/bug-1188048-http-client

« back to all changes in this revision

Viewing changes to test/Queries/http2-read-status-only.xq

  • Committer: markosza
  • Date: 2011-07-29 03:48:31 UTC
  • Revision ID: svn-v4:8046edc3-af21-0410-8661-ec7318497eea:modules/http-client/trunk:11479
Fixed scripting issues with http-client tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import module namespace http = "http://expath.org/ns/http-client";
2
 
declare namespace h = "http://expath.org/ns/http-client";
3
 
 
4
 
let $req := <h:request method="GET"
5
 
               href="http://www.zorba-xquery.com/http-client/no-type.blub"
6
 
               auth-method="Basic"
7
 
               send-authorization="true"
8
 
               username="zorba"
9
 
               password="blub"
10
 
               override-media-type="text/html"
11
 
               status-only="true"/>
12
 
let $res := http:send-request($req, ())
13
 
return fn:not(exists($res[1]//*:body))
 
1
import module namespace http = "http://expath.org/ns/http-client";
 
2
declare namespace h = "http://expath.org/ns/http-client";
 
3
 
 
4
local variable $req := <h:request method="GET"
 
5
               href="http://www.zorba-xquery.com/http-client/no-type.blub"
 
6
               auth-method="Basic"
 
7
               send-authorization="true"
 
8
               username="zorba"
 
9
               password="blub"
 
10
               override-media-type="text/html"
 
11
               status-only="true"/>;
 
12
 
 
13
local variable $res := http:send-request($req, ());
 
14
 
 
15
fn:not(exists($res[1]//*:body))