Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Invoke-WebRequest and Invoke-RestMethod should support Unix Domain Sockets #12060

Copy link
Copy link
@JamesWTruher

Description

@JamesWTruher
Issue body actions

Summary of the new feature/enhancement

curl has the parameter --unix-socket which is super useful when dealing with those services which use them (like Docker). for example:

curl --unix-socket /var/run/docker.sock http://v1.40/images/json| convertfrom-json

It seems that our webrequest and restmethods should support this.

Proposed technical implementation details (optional)

One possible approach would be to allow the uri property to encode the path to the socket
It seems like the cmdlets have enough parameter sets, but adding parameter sets for this might also be reasonable.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issueIndicates that a PR is out for the issueIssue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility modulecmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.