#include <glib.h>
#include <libsoup/soup.h>

int main(int argc, char **argv)
{
    SoupSession * soup_session;
	SoupMessage *msg;

    g_type_init();
    g_thread_init(NULL);

    soup_session = soup_session_sync_new();
	msg = soup_message_new ("GET", "http://www.gnome.org/~jstowers/conduit_test_data/Image.png");
    soup_session_send_message(soup_session, msg);

    if (SOUP_STATUS_IS_SUCCESSFUL (msg->status_code)) 
	{
        const char *text;
        text = soup_message_headers_get (msg->response_headers,"Last-Modified");
        g_debug("Last Modified: %s", text);
    }
    else
        g_debug("BROKE");
}
