Recently I needed to post XML to a particular API and this API required HTTPS authentication. So I needed to send a username / password with the request.
This was pretty straightforward in C#.NET ( at least from my foggy memory ). You needed to use NetworkCredentials. But it was a bit difficult to find a similar way of doing this in PHP… but eventually I found this gem.
Two plus two and you get …
Continue reading “Post XML with HTTPS Authentication using PHP and cURL”