Skip to content

Commit 83b5721

Browse files
committed
update
1 parent 2b2e216 commit 83b5721

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

tcp.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# TCP
2+
3+
## Opening a TCP connection
4+
5+
> With telnet
6+
```
7+
telnet <URL>:<port>
8+
9+
# Example:
10+
telnet api.example.com 80
11+
```
12+
13+
> With OpenSSL
14+
```
15+
openssl s_client --quiet --connect <URL>:<port>
16+
17+
# Example:
18+
openssl s_client --quiet --connect api.example.com:443
19+
```

web.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
![URL vs URI vs URN](images/url_uri_urn.jpg)
66

7-
## URI
7+
### URI
88

99
URI stands for Uniform Resource Identifier. It identifies a logical or physical resource on the web. URL and URN are subtypes of URI. URL locates a resource, while URN names a resource.
1010

@@ -14,10 +14,10 @@ A URI is composed of the following parts:
1414
scheme:[//authority]path[?query][#fragment]
1515
```
1616

17-
## URL
17+
### URL
1818

1919
URL stands for Uniform Resource Locator, the key concept of HTTP. It is the address of a unique resource on the web. It can be used with other protocols like FTP and JDBC.
2020

21-
## URN
21+
### URN
2222

2323
URN stands for Uniform Resource Name. It uses the urn scheme. URNs cannot be used to locate a resource. A simple example given in the diagram is composed of a namespace and a namespace-specific string.

0 commit comments

Comments
 (0)