Curl request not work

Asked by:
HubFans / n/a Points
Time:
2017-03-30 10:27 pm EST
Category:
How To
Hits:
454
Hello I try to do a curl request to ip-api server to get geo info by client ip, baut no work, i try also tu use a php function get_file_content, and not work. maybe the curl module s not active or is blocked by security raeson? Any idea to how can i do it

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

johnpaulb-whh2
Staff
12,339 Points
2017-03-30 10:57 pm EST
Hello,

Thank you for you for contacting us about issues with curl requests. Curl is enabled on all servers by default. You can confirm this by checking your php info page. You can disable mod_security if you suspect a block then.

Also, check with the recipient server, as they may be able to "whitelist" you to allow access.

Are you getting any errors? Can you provide them?

Thank you,
John-Paul

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}