Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (22 sloc) 0.764 kb
3b9e4a1 @klacke new ret vals from out/1
authored
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <HTML>
3 <HEAD>
4 <meta name="keywords" content="post">
5
6
379666b @klacke documented jockes new bindings feature
authored
7 <TITLE>Redirect example</TITLE>
3b9e4a1 @klacke new ret vals from out/1
authored
8
9 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
10
11 </HEAD>
12 <BODY BGCOLOR="#C6C6B5" text="#333333">
13
14
15 <HTML>
16
b2d5a00 @klacke postvar(), queryvar(), ssi docs
authored
17 <H1> redirect.yaws </H1>
3b9e4a1 @klacke new ret vals from out/1
authored
18
379666b @klacke documented jockes new bindings feature
authored
19 <p> This a redirection example, the following <a href="redirect2.yaws">redirection url</a> contains the following code in its first erl group.
3b9e4a1 @klacke new ret vals from out/1
authored
20
21
22 <erl>
23
379666b @klacke documented jockes new bindings feature
authored
24 out(_) -> 1 yaws_api:pre_ssi_string(
3b9e4a1 @klacke new ret vals from out/1
authored
25 "
26 out(_) ->
27 yaws_api:redirect(
28 \"http://www.google.com/search?num=20&hl=en&lr=lang_en%7Clang_sv&q=yaws\").
29 ").
30
31 </erl>
32
33 <p>The redirection code in the yaws_api module returns a new status code
34 as well as a Location header.
35
36
37
38 </HTML>
39
379666b @klacke documented jockes new bindings feature
authored
40
Something went wrong with that request. Please try again.