-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestpage.html
More file actions
89 lines (76 loc) · 3.16 KB
/
testpage.html
File metadata and controls
89 lines (76 loc) · 3.16 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<head>
<title>Link Scanner Test Page</title>
<body>
<style>
h2, h3 { font-family: "Arial, Helvetica, sans-serif"; }
</style>
<h3>Valid links</h3>
<ul>
<li> <a href="https://ku.ac.th">KU's Home page</a> has multiple redirects.
<li> Four links to the same page. Linkscanner should list the URL only once, without page fragments.
<ol>
<li><a href="https://cpske.github.io/ISP/about">About ISP</a>
<li><a href="https://cpske.github.io/ISP/about#instructors-and-teaching-assistants">TA contact information</a> (has page frag)
<li><a href="https://cpske.github.io/ISP/about#code-for-email">Source code EmailTA contact information</a> (has page frag)
<li><a href="https://cpske.github.io/ISP/about?useless-query-param">Link with query parameter</a>
</ol>
<li> A link to a section on this page (page frag without hostname) <a href="#url-parsing">URL Parsing</a>
<li> <a href=https://cpske.github.io/ISP/>ISP on Github.io</a>
<li> bit.ly redirect URL <a href=https://bit.ly/isp2024-projects>ISP 2024 Projects Sheet</a>
<li><a href="https://api.github.com/orgs/Netflix/repos">Netflix public repos on Github</a> (172KB).
<li> <a href=https://cpske.github.io/ISP/about>About the Course</a> (a duplicate URL)
<li>
<a href="https://shopee.co.th/products/some-products-on-shopee-have-crazy-long-paths-that-describe-the-product-and-they-dont-always-work-either">Long Shopee URL</a> is invalid but shopee returns 200 anyway. Output should only first <b>120 characters</b> followed by "...".
</ul>
<h3>Images</h3>
This URLs for these should be included included in output.
<style>
.flex-container {
display: flex;
flex-direction: row;
align-content: space-around;
padding: 2em;
}
</style>
<div class="flex-container">
<div>
<img src="images/SDLC.png" alt="SDLC"/>
<p align="center">
ISP Logo
</p>
</div>
<div>
<img src="https://www.ku.ac.th/assets/images/header/KU_logo_62x62_th.svg" alt="KU Logo" width="220" height="220"/>
<p align="center">
KU Logo
</p>
</div>
</div>
<h3>Problem Links</h3>
<ul>
<li>Github repos that the authenticated user has access to:
<a href="https://api.github.com/user/repos">
https://api.github.com/user/repos</a>
Returns 401 if not authenticated.
</li>
<li><a href="http://localhost:8000/unauthorized/")http://localhost:8000/unauthorized/</a> Django test page returns 401 Unauthorized</a>
</li>
<li><a href="http://localhost:8000/payment-required/")http://localhost:8000/payment-required/</a> Django test page returns 402 Payment Required</a>
</li>
<li><a href="http://localhost:8000/forbidden/")http://localhost:8000/forbidden/</a> Django test page returns 403 Forbidden</a>
</li>
<li><a href="http://localhost:8000/unacceptable/")http://localhost:8000/unacceptable/</a> Django test page returns 406 Not Acceptable</a>
<a href="https://api.paypal.com/v1/invoicing/invoices/">
https://api.paypal.com/v1/invoicing/invoices/</a>
</li>
<li>URL does not exist
<a href="https://www.yahoooooooooo.com">www.yahoooooooooo.com</a>
</li>
<li>
<a name="findme">An <a> tag without href attribute.</a> (link scanner should <b>not</b> output this and <b>not</b> crash)
</li>
<li>Invalid URL syntax: <a href="https://foo+bar!">https://foo+bar!</a>
</li>
</ul>
</body>
</html>