Jump to content

simplexml_load_file not working


samjsharples

Recommended Posts

Hi.

 

I am trying to fetch xml from a betting website feed. The feed is restricted per IP but I have had the server IP, where the site is located, whitelisted and they have confirmed numerous times that the IP has definitely been whitelisted.

 

If I try to connect using simplexml_load_file to a BBC xml feed it works fine but to the betting feed I get "failed to open stream: HTTP request failed!"

 

Is there any way of knowing why it is failing or is there anything else that could prevent it from connecting to that specific feed?

 

many thanks in advance

Sam

Link to comment
https://forums.phpfreaks.com/topic/289490-simplexml_load_file-not-working/
Share on other sites

Actually I was hoping for more error messages, but okay. cURL could give you exact HTTP error codes and the response, if any, which may help.

 

Sounds like it's still blocked. They should have access logs showing the failed connections...

Ok, another strange thing now. I have had another betting company ask for the IP to be whitelisted and that one isn't working either!! I'm sure i'm asking for the correct IP but could it be the fact that it is a shared hosting box? What else could be preventing this from working? I had my own dedicated server whitelisted and that one works, it's just this clients one that isnt working...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.