2

Do you recommend any good library or examples online for implementing an HTTPS client that can connect to a website using basic authentication? This is meant to run in linux servers.

Any pointers help.

Update: Question about the unanimous libcurl - does it come bundled by default in major distributions like Debian, Ubuntu, Gentoo, Slackware, RedHat and Arch?

3 Answers 3

5

libcurl supports both HTTPS and HTTP Basic Authentication. There's plenty of example code online.

All of the distributions you mention have libcurl packaged. It is not absolutely certain to be installed, but it is very common.

2
  • Thanks, do you know if it's supported by the OSes I mention on my update?
    – kolrie
    Nov 26, 2009 at 22:24
  • I meant distribution, sorry about that
    – kolrie
    Nov 26, 2009 at 22:34
2

libcurl

A free and easy-to-use client-side URL transfer library, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, FILE, LDAP and LDAPS. libcurl supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, kerberos, HTTP form based upload, proxies, cookies, user+password authentication, file transfer resume, http proxy tunneling and more.

1

I have used libcurl and can recommend it.

Not the answer you're looking for? Browse other questions tagged or ask your own question.