Private dedicated and shared proxies

It is a common question what proxy type is better: dedicated or shared private proxies? By using dedicated proxies, you are the only user of your proxy pack and with shared private proxies, your proxies can be shared with few users at the same time. In this case, private shared proxies are way much cheaper […]

Uncategorized

how to upload a file to a document library using OData in PowerShell with curl or Invoke-RestMehthod

As I cannot use Pnp.PowerShell with a SharePoint-2019 on premise, AFAIK, I’ve been trying to do it with OData using curl. Unfortunately it happens to be much more complicated than I thought. I ended up building this command: curl -vvv -n -X POST "https://sharepoint.site/site/aaa/_api/web/GetFolderByServerRelativeUrl(‘/site/aaa/library/folder’)/Files/add" -T a.xlsx -H "Accept: application/json;odata=nometadata" -H "X-RequestDigest: xxxxxx" HTTP/1.1 400 Bad […]