views:

526

answers:

3

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?

+1  A: 

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.

Yacoby
A: 

I have used libcurl and can recommend it.

Seb Rose
+3  A: 

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.

caf
Thanks, do you know if it's supported by the OSes I mention on my update?
kolrie
they're all linux
Javier
I meant distribution, sorry about that
kolrie