Jump to content

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...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.