Skip to content

Add cURL to the Bash users list in README.md - #7948

Merged
Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
vmsilvamolina:patch-2
Oct 9, 2018
Merged

Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
vmsilvamolina:patch-2

Conversation

@vmsilvamolina

@vmsilvamolina Victor Silva (vmsilvamolina) commented Oct 5, 2018 •

Copy link
Copy Markdown
Contributor

PR Summary

add the cURL example on the Bash users list

PR Checklist

Comment thread docs/learning-powershell/README.md Outdated
| find -name build* |Get-ChildItem build* -Recurse |Find a file or folder starting with 'build'
| grep -Rin "sometext" --include="*.cs" |Get-ChildItem -Recurse -Filter *.cs <br> \| Select-String -Pattern "sometext" | Recursively case-insensitive search for text in files

| curl dominio.com | Invoke-WebRequest dominio.com | Transfer data from or to a web from differentes protocols

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Transfer data from web?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Invoke-RestMethod is more similar to curl than Invoke-WebRequest. Also, the example does work with curl and it's better to use a more generic URL:

curl https://github.com
Invoke-RestMethod https://github.com

For the description, maybe: Transfer data to or from the web

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll make the changes.

Comment thread docs/learning-powershell/README.md Outdated
| find -name build* |Get-ChildItem build* -Recurse |Find a file or folder starting with 'build'
| grep -Rin "sometext" --include="*.cs" |Get-ChildItem -Recurse -Filter *.cs <br> \| Select-String -Pattern "sometext" | Recursively case-insensitive search for text in files

| curl dominio.com | Invoke-WebRequest dominio.com | Transfer data from or to a web from differentes protocols

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Invoke-RestMethod is more similar to curl than Invoke-WebRequest. Also, the example does work with curl and it's better to use a more generic URL:

curl https://github.com
Invoke-RestMethod https://github.com

For the description, maybe: Transfer data to or from the web

@SteveL-MSFT Steve Lee (SteveL-MSFT) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iSazonov
Ilya (iSazonov) merged commit e29b5ee into PowerShell:master Oct 9, 2018
@iSazonov Ilya (iSazonov) changed the title add cURL to the Bash users list Add cURL to the Bash users list in README.md Oct 9, 2018
@iSazonov

Copy link
Copy Markdown
Collaborator

Victor Silva (@vmsilvamolina) Thanks for your contribution!

Aditya Patwardhan (adityapatwardhan) pushed a commit to adityapatwardhan/PowerShell that referenced this pull request Apr 9, 2019
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants