Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 652 Bytes

why-is-proxy-not-mocking-my-binary-response.md

File metadata and controls

23 lines (17 loc) · 652 Bytes
title description author ms.author ms.date
Why is proxy not mocking my binary response
How to fix proxy not mocking binary responses
garrytrinder
garrytrinder
04/08/2024

Why is proxy not mocking my binary response

The dollar sign has special meaning in some shells and might need to be escaped.

In PowerShell, use a backtick:

Invoke-WebRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/users/id/photo/`$value" -Proxy http://localhost:8000

In bash, wrap the URL in double quotes and add a backslash:

curl -ikx http://localhost:8000 "https://graph.microsoft.com/v1.0/users/id/photo/\$value"