[TYPO3-dev] t3lib_div::getURL

Steffen Kamper steffen at sk-typo3.de
Mon May 19 19:34:42 CEST 2008


"Dan Osipov" <dosipov at phillyburbs.com> schrieb im Newsbeitrag 
news:mailman.1.1211218261.21651.typo3-dev at lists.netfielders.de...
> Hey group,
>
> I've tried using the t3lib_div::getURL function to get contents of XML 
> files over HTTP (Yahoo REST web service). I've found that it is very 
> unstable. Sometimes it returns the content, but at times it returns FALSE. 
> Stepping into the function, it shows that it hits a 400 HTTP error on line 
> 2618:
> $content = @file_get_contents($url, false, $ctx);
>
> Anyone experienced this? Any idea how to make it work?
> FYI, I don't think I can use curl...
>

i do this with simpleXML, do you tried that?

vg Steffen 






More information about the TYPO3-dev mailing list