File tree Expand file tree Collapse file tree
test/groovy/groovyx/net/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Documentation: https://github.com/jgritman/httpbuilder/wiki
1010Contributions:
1111
1212 This project relies on the work of many open source projects including:
13- * Groovy: http://groovy.codehaus .org
13+ * Groovy: http://groovy-lang .org
1414 * Apache HttpClient: http://hc.apache.org
1515 * Json-Lib: http://json-lib.sourceforge.net/
1616 * Neko HTML: http://nekohtml.sourceforge.net/
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Simplified GET Request
1717 HTML response based on the response's content-type header. The HTML stream is
1818 normalized (thanks to {{{http://nekohtml.sourceforge.net/}Neko,}}) and then
1919 parsed by an
20- {{{http://groovy.codehaus. org/Reading+XML+using+Groovy%27s+XmlSlurper }XmlSlurper}}
20+ {{{http://groovy-lang. org/processing-xml.html }XmlSlurper}}
2121 for easy DOM traversal.
2222
2323 We are also taking advantage of HTTPBuilder's
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ The Magic: Built-in Content-Type Parsing
9292
9393 Probably the quickest way to debug is to turn on logging for HTTPBuilder and
9494 Apache HttpClient. An example
95- {{{https://svn.codehaus.org/gmod /httpbuilder/trunk /src/test/resources/log4j.xml}
95+ {{{https://github.com/jgritman /httpbuilder/blob/master /src/test/resources/log4j.xml}
9696 log4j configuration}} can be used to output headers and request/response
9797 content, as well as additional information on what HTTPBuilder is doing with
9898 the request and response.
Original file line number Diff line number Diff line change 77Parsing XML data
88
99 By default, HTTPBuilder classes will automatically parse XML responses using
10- an <<<{{{http://groovy.codehaus. org/gapi/groovy/util/XmlSlurper .html}XmlSlurper}}>>>.
10+ an <<<{{{http://groovy-lang. org/processing-xml .html}XmlSlurper}}>>>.
1111
1212 You can try the following example in the Groovy console (Groovy 1.6+ is needed
1313 for the <<<@Grab>>> macro):
@@ -44,7 +44,7 @@ Parsing XML data
4444POSTing XML data
4545
4646 XML data is serialized using
47- <<<{{{http://groovy.codehaus. org/gapi/index. html? groovy/xml/StreamingMarkupBuilder.html}StreamingMarkupBuilder}}>>>.
47+ <<<{{{http://docs. groovy-lang. org/latest/ html/gapi/ groovy/xml/StreamingMarkupBuilder.html}StreamingMarkupBuilder}}>>>.
4848 You can define the <<<body>>> property as a closure like so:
4949
5050%{code-snippet|id=xml2|brush=groovy|file=src/site/examples.txt}
Original file line number Diff line number Diff line change 1212 <bannerRight >
1313 <name >Groovy</name >
1414 <src >http://media.xircles.codehaus.org/_projects/groovy/_logos/medium.png</src >
15- <href >http://groovy.codehaus .org/</href >
15+ <href >http://groovy-lang .org/</href >
1616 </bannerRight >
1717 <version position =" left" />
1818 <publishDate position =" right" />
4646 <item name =" About" href =" about.html" />
4747 </menu >
4848 <menu name =" Additional Reference" >
49- <item name =" Groovy" href =" http://groovy.codehaus .org/Documentation" />
49+ <item name =" Groovy" href =" http://groovy-lang .org/Documentation" />
5050 <item name =" HTTP/1.1 RFC" href =" http://www.w3.org/Protocols/rfc2616/rfc2616.html" />
5151 <item name =" HttpClient" href =" http://hc.apache.org/httpcomponents-client/" />
5252 <item name =" HttpCore" href =" http://hc.apache.org/httpcomponents-core/" />
8484 <logo name =" Ohloh" href =' http://www.ohloh.net/p/http-builder'
8585 img =' http://www.ohloh.net/p/http-builder/widgets/project_thin_badge.gif' />
8686 </poweredBy >
87- </project >
87+ </project >
Original file line number Diff line number Diff line change 1919 both commercial and non-commercial products.</p >
2020
2121 <p >HTTPBuilder is built on top of a number of excellent open source
22- products, including <a href =' http://groovy.codehaus .org/' >Groovy</a >,
22+ products, including <a href =' http://groovy-lang .org/' >Groovy</a >,
2323 <a href =' http://hc.apache.org/httpcomponents-client/' >Apache HttpClient</a >,
2424 and <a href =' http://json-lib.sourceforge.net/' >Json-Lib</a >.</p >
2525
4949 </ul >
5050 </section >
5151 </body >
52- </document >
52+ </document >
Original file line number Diff line number Diff line change @@ -98,13 +98,13 @@ public class URIBuilderTest {
9898 def uri = new URIBuilder ( ' http://johannburkard.de/%22bla%22' )
9999 uri. query = [ what_is_this : ' i_dont_even' ]
100100
101- uri = new URIBuilder ( ' http://codehaus .org/' )
101+ uri = new URIBuilder ( ' http://groovy-lang .org/' )
102102 uri. path = ' "bla"'
103103
104104 uri. fragment = ' what evs'
105- assert uri. toString() == ' http://codehaus .org/%22bla%22#what%20evs'
105+ assert uri. toString() == ' http://groovy-lang .org/%22bla%22#what%20evs'
106106 uri. query = [ a : ' b#' ]
107- assert uri. toString() == ' http://codehaus .org/%22bla%22?a=b%23#what%20evs'
107+ assert uri. toString() == ' http://groovy-lang .org/%22bla%22?a=b%23#what%20evs'
108108 uri. port = 80
109109 uri. host = ' google.com'
110110 uri. scheme = ' https'
You can’t perform that action at this time.
0 commit comments