-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_case.txt
120 lines (91 loc) · 3.34 KB
/
test_case.txt
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!-- Simple anchor tag -->
<a href="http://subdomain1.example.com">Link to subdomain1</a>
<!-- Anchor tag with a parameter -->
<a href="http://subdomain2.example.com?param=value">Link to subdomain2</a>
<!-- Form action URL -->
<form id="subdomain3.example.com/submit">
<input type="submit" value="Submit to subdomain3">
</form>
<!-- Image source URL -->
<img src="http://subdomain4.example.com/image.jpg" alt="Image from subdomain4">
<!-- Script source URL -->
<script src="http://subdomain5.example.com/script.js"></script>
<!-- Link tag for a stylesheet -->
<link rel="stylesheet" href="http://subdomain6.example.com/style.css">
<!-- Within an attribute of a custom data tag -->
<div data-url="http://subdomain7.example.com">subdomain7.one.example.com</div>
<!-- In a meta tag -->
<meta property="og:url" content="http://subdomain8.example.com">
<!-- In a header -->
<h1>http://subdomain9.example.com</h1>
<!-- URL Examples in Code -->
<!-- JavaScript -->
<script>
// Fetching data from a subdomain
fetch('http://subdomain10.example.com/api/data')
.then(response => response.json())
.then(data => console.log(data));
// Setting window location
window.location.href = 'http://subdomain11.example.com';
</script>
<!-- Python -->
<script type="text/python">
import requests
# Making a GET request to a subdomain
response = requests.get('http://subdomain12.example.com/api/data')
print(response.text)
# Open a URL in the web browser
import webbrowser
webbrowser.open('http://subdomain13.example.com')
</script>
<!-- Shell Script -->
<pre>
#!/bin/bash
# Using curl to download from a subdomain
curl -O subdomain14.example.com/file.txt
# Pinging a subdomain
ping -c 4 subdomain15.example.com
</pre>
<!-- Book/Text Examples -->
<p>In the novel, the protagonist frequently visits <a href="http://subdomain16.example.com">http://subdomain16.example.com</a> for research.</p>
<p>The following address was found scribbled in the margins of the old book: <a href="http://subdomain17.example.com">subdomain17.example.com</a>.</p>
<p>For more information, check out <a href="http://subdomain18.example.com">subdomain18.example.com</a>.</p>
<!-- Markdown Examples -->
<pre>
[Visit our website](http://subdomain19.example.com) for more details.
![Image from subdomain](subdomain20.example.com/image.png)
```http
GET /api/resource HTTP/1.1
Host: subdomain21.example.com
</pre>
<!-- JSON Configuration Examples -->
<pre>
{
"apiBaseUrl": "http://subdomain22.example.com/api",
"assetsUrl": "http://subdomain23.example.com/assets"
}
</pre>
<!-- SQL Query Examples -->
<pre>
-- Selecting data from a URL column
SELECT * FROM websites WHERE url = 'subdomain24.example.com';
-- Inserting a new record with a subdomain URL
INSERT INTO websites (name, url) VALUES ('Site 25', 'subdomain25.example.com');
</pre>
This file contains all the examples in one place, formatted in HTML with various sections for different use cases.
https://subdomain26.example.com
subdomain27.example.com
<h1>subdomain28.example.com</h1>
\n\ntest.example.com\n\n
\n\ntest.example.com\n\n
\t\btest.example.com\b\t
\\t\\btest.example.com\\b\\t
\nxn--3rsubdomain27.example.com
// Invalid
-example.com (hyphen at the beginning)
example-.com (hyphen at the end)
example..com (consecutive dots)
exa mple.com (space within the domain)
ex@ample.com (special character not allowed)
// Fused
google.comapple.com