inkdropapp / inkdrop-alfred-workflow

A simple Alfred workflow for Inkdrop
MIT License
8 stars 2 forks source link

Fix setting basic auth for curl to Inkdrop local server #2

Closed picklecillo closed 3 years ago

picklecillo commented 3 years ago

Passing user:password as part of the url for curl was throwing a formatting error because, at least in my case, the user is an email address.

> curl http://some@email.com:password@127.0.0.1:19840/notes/?limit=20&keyword=test
curl: (3) URL using bad/illegal format or missing URL

As this has ben deprecated (see here), I switched it to passing the CURLOPT_USERPWD option in order to get the workflow working.

Hope it helps.

Also: This is the related issue -> https://github.com/inkdropapp/inkdrop-alfred-workflow/issues/1

craftzdog commented 3 years ago

Makes sense! I didn't know the format user:password has been deprecated. Thank you so much for fixing this.