looks like there is no way for this. i had to use libcurl.