Skip to content

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

@JamesWTruher

Description

@JamesWTruher

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions