/*
 * htFollow - follow an http url until content is reached
 * Copyright(c) 2005-2015 of wave++ (Yuri D'Elia)
 * Distributed under GNU LGPL without ANY warranty.
 */

#ifndef htfollow_hh
#define htfollow_hh

// local headers
#include "urlparse.hh"
#include "http.hh"

// system headers
#include <map>

// c system headers
#include <time.h>


Socket*
htFollow(std::map<std::string, std::string>& pReply, const URL& url,
    const Http::Header qHeaders, size_t limit, time_t timeout,
    size_t retries = 0, size_t waitSecs = 0);

#endif
