mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-05 21:46:02 +02:00
invoke-webrequest, iwr, curl, wget: add Indonesian translation (#8680)
This commit is contained in:
parent
409706d8ec
commit
2c311eab4f
4 changed files with 70 additions and 0 deletions
19
pages.id/windows/curl.md
Normal file
19
pages.id/windows/curl.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# curl
|
||||
|
||||
> Perintah ini dapat merupakan alias dari `Invoke-WebRequest` jika program `curl` (<https://curl.se>) tidak terpasang secara benar di PowerShell.
|
||||
|
||||
- Cari tahu apakah `curl` sudah terpasang dengan benar dengan menampilkan versi program tersebut. Jika perintah ini memunculkan pesan galat/error, maka PowerShell berkemungkinan sedang menggantinya dengan `Invoke-WebRequest`:
|
||||
|
||||
`curl --version`
|
||||
|
||||
- Tampilkan dokumentasi untuk perintah `curl` yang asli:
|
||||
|
||||
`tldr curl -p common`
|
||||
|
||||
- Tampilkan dokumentasi untuk perintah `curl` yang asli dalam program `tldr` versi lawas:
|
||||
|
||||
`tldr curl -o common`
|
||||
|
||||
- Tampilkan dokumentasi untuk perintah `Invoke-WebRequest`:
|
||||
|
||||
`tldr invoke-webrequest`
|
25
pages.id/windows/invoke-webrequest.md
Normal file
25
pages.id/windows/invoke-webrequest.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Invoke-WebRequest
|
||||
|
||||
> Membuat panggilan dan permintaan HTTP/HTTPS.
|
||||
> Perintah ini hanya dapat digunakan dalam PowerShell.
|
||||
> Informasi lebih lanjut: <https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest>.
|
||||
|
||||
- Unduh konten URL ke file:
|
||||
|
||||
`Invoke-WebRequest {{http://example.com}} -OutFile {{jalan/menuju/file}}`
|
||||
|
||||
- Kirim data form yang telah di encode (permintaan POST atau tipe data `application/x-www-form-urlencoded`):
|
||||
|
||||
`Invoke-WebRequest -Method Post -Body @{ name='bob' } {{http://example.com/form}}`
|
||||
|
||||
- Kirim sebuah permintaan dengan header tambahan, menggunakan metode HTTP kustom:
|
||||
|
||||
`Invoke-WebRequest -Headers {{@{ X-My-Header = '123' }}} -Method {{PUT}} {{http://example.com}}`
|
||||
|
||||
- Kirim data dalam format JSON, Menentukan jenis konten yang sesuai header:
|
||||
|
||||
`Invoke-WebRequest -Body {{'{"name":"bob"}'}} -ContentType 'application/json' {{http://example.com/users/1234}}`
|
||||
|
||||
- Berikan nama pengguna dan kata sandi untuk otentikasi server:
|
||||
|
||||
`Invoke-WebRequest -Headers @{ Authorization = "Basic "+ [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes("myusername:mypassword")) } {{http://example.com}}`
|
7
pages.id/windows/iwr.md
Normal file
7
pages.id/windows/iwr.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# iwr
|
||||
|
||||
> Perintah ini merupakan alias dari `Invoke-WebRequest` di PowerShell.
|
||||
|
||||
- Tampilkan dokumentasi untuk perintah asli:
|
||||
|
||||
`tldr invoke-webrequest`
|
19
pages.id/windows/wget.md
Normal file
19
pages.id/windows/wget.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# wget
|
||||
|
||||
> Perintah ini dapat merupakan alias dari `Invoke-WebRequest` jika program `wget` (<https://www.gnu.org/software/wget>) tidak terpasang secara benar di PowerShell.
|
||||
|
||||
- Cari tahu apakah `wget` sudah terpasang dengan benar dengan menampilkan versi program tersebut. Jika perintah ini memunculkan pesan galat/error, maka PowerShell berkemungkinan sedang menggantinya dengan `Invoke-WebRequest`:
|
||||
|
||||
`curl --version`
|
||||
|
||||
- Tampilkan dokumentasi untuk perintah `wget` yang asli:
|
||||
|
||||
`tldr wget -p common`
|
||||
|
||||
- Tampilkan dokumentasi untuk perintah `wget` yang asli dalam program `tldr` versi lawas:
|
||||
|
||||
`tldr wget -o common`
|
||||
|
||||
- Tampilkan dokumentasi untuk perintah `Invoke-WebRequest`:
|
||||
|
||||
`tldr invoke-webrequest`
|
Loading…
Add table
Reference in a new issue