"함수 getTextFromURL()"의 두 판 사이의 차이

5번째 줄: 5번째 줄:
[[분류: Bash]]
[[분류: Bash]]
<syntaxhighlight lang='bash' run>
<syntaxhighlight lang='bash' run>
content=$(curl https://raw.githubusercontent.com/kubernetes/kubernetes/v1.26.3/.go-version)
content=$(curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/v1.26.3/.go-version)
echo content=[$content]
echo content=[$content]
</syntaxhighlight>
</syntaxhighlight>

2023년 4월 8일 (토) 12:56 판

1 개요

함수 get_http_content()

2 Bash

Bash
CPU
0.0s
MEM
12M
0.4s
Copy
content=$(curl -s https://raw.githubusercontent.com/kubernetes/kubernetes/v1.26.3/.go-version)
echo content=[$content]
content=[1.19.7]

3 PHP

PHP
Copy
<?php
$content = file_get_contents('https://raw.githubusercontent.com/kubernetes/kubernetes/v1.26.3/.go-version');
var_dump($content);
Loading

4 같이 보기