Added headers to log, set_url method defined, and moved the counter to post_get_url