Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3673938
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:47:40+00:00 2026-05-19T02:47:40+00:00

i use a web hosting web site which has currently blocked all outgoing traffic

  • 0

i use a web hosting web site which has currently blocked all outgoing traffic at port 80, so neither does fopen work nor does curl but wordpress is able to update it self…
hows that possible ????
i need to fetch a file from the internet as well can it be possible that i replicate the function used by wordpress and fetch the files using php..

plz help..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:47:40+00:00Added an answer on May 19, 2026 at 2:47 am

    I’ve looked at the WordPress update code and traced it through to the WP_Http class (file source) where the actual file-download occurs. This class will use one of many built-in methods for fetching files if the preferred functions aren’t available:

    The order for the GET/HEAD requests are HTTP Extension, cURL, Streams, Fopen, and finally Fsockopen.

    One scenario is that your host isn’t actually blocking traffic on port 80, but rather making file downloading difficult by not including the cURL extension and setting allow_url_fopen to false to prevent common code-injection vulnerabilities. In this case it is possible that WordPress is succeeding by making use of one of the other methods for retrieving data. Your options for downloading files via your PHP scripts in this scenario are (in order of preference):

    1. See if your host supports the HTTP Extension and use that instead of fopen or cURL.
    2. Include and use the wp-includes/class-http.php and make use of it in your scripts to get around these limitations.
    3. Write/use another library that provides file-downloads through Streams or Fsockopen.

    An alternate scenario is that your host is blocking traffic on port 80, but has white-listed wordpress.org to allow WordPress to update itself. In this case you are out of luck unless you can configure some sort of proxy solution on another port.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some business objects which use: Web.Configuration.WebConfigurationManager.AppSettings.Item(SomeSetting) Now that I'm breaking those objects
My over all goal is to upload a very simple ASP.NET web site created
I have a web site which will be featured in a place which will
I use a web-hosting startlogic.com. I asked an employee about cron. They told me
Can anyone suggest a good reason to use web services instead of RPC (not
I am looking for specific guidelines for when to use Web Services frameworks versus
I use System.Web.Services.WebMethodAttribute to make a public static method of an ASP.NET page callable
I want to use the Web Browser control within an mono application, but when
I want to use the Web Tools Editor that is part of the Web
As I use the web, I regularly get runtime errors (usually javascript) being reported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.