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 currently have a single web server hosting multiple WordPress sites which use W3TC.
i host my web site in shared hosting server, this server use the default
I have a web site which uses one SQL database but the hosting company
I am hosting a web site from home. My system has two layers: a
My over all goal is to upload a very simple ASP.NET web site created
Can I use the Copy Web Site tool in Visual Studio 2008 to deploy
I use uploadify to upload files into my web site. It works with one
I've created a Web Matrix web site from the starter template which creates a
I have a dll which parses some web site. This component uses WebBrowser control
I have two web site that are 99% similar. They share all of the

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.