Redland
view release on metacpan or search on metacpan
redland/raptor/src/raptor_www_libfetch.c view on Meta::CPAN
{
}
int
raptor_www_libfetch_fetch(raptor_www *www)
{
FILE *stream;
if(www->proxy) {
setenv("HTTP_PROXY", www->proxy, 0);
setenv("FTP_PROXY", www->proxy, 0);
}
if(www->user_agent)
setenv("HTTP_USER_AGENT", www->user_agent, 0);
stream=fetchXGetURL((const char*)raptor_uri_as_string(www->uri), NULL, NULL);
if(!stream) {
www->failed=1;
raptor_www_error(www, "%s", fetchLastErrString);
return 1;
}
/* fetch does not give us access to this */
www->status_code=200;
( run in 0.408 second using v1.01-cache-2.11-cpan-283623ac599 )