The HTTP request sent by wp_remote_get()
is different from the one that a browser sends. E.g the user-agent
is different (see documentation). Some websites respond differently based on this.
The second argument of wp_remote_get()
allows one to alter the request.
Websites might also respond differently depending on the IP or the number of requests received (usually by limiting or banning certain patterns).
By the way, I tested the page you mentioned and it works for me:
wp_remote_get("http://www.aljazeera.net/news/international/2016/8/24/%D9%82%D8%AA%D9%84%D9%89-%D9%88%D8%AF%D9%85%D8%A7%D8%B1-%D8%A8%D8%B2%D9%84%D8%B2%D8%A7%D9%84-%D9%8A%D8%B6%D8%B1%D8%A8-%D9%88%D8%B3%D8%B7-%D8%A5%D9%8A%D8%B7%D8%A7%D9%84%D9%8A%D8%A7");
Related Posts:
- Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
- Error 404 Page Not Found When Updating a Post or Page
- : Failed to load resource
- Only on 404 page, get notice: trying to get property of non-object on nonce
- Is there a way to avoid 404 pages in WordPress?
- Homepage Not Found Error [closed]
- wp_remote_get sslv3 alert handshake failure
- @file_get_contents and wp_remote_get
- Blog automatically redirected to error page
- Site Address (URL) – causing error 404
- 404 Not found error after update to WordPress 5.0
- styles/default.css in markup, where does it come from? [closed]
- Getting 404 error on homepage only
- When trying to access home page, WordPress appends /wordpress to domain name which gives 404 error
- 404 Not Found Error showing when I run wordpress
- Header already sent, error shows core files
- : this page isn’t working. is unable to handle the request. Http error 500
- How to fix this CORS error?
- Logging out gives 404 error
- Any idea on how to fix this error when forcing SSL on a certain page?
- Random HTTP 500 error in WordPress
- HTTPS leads to Sorry, you are not allowed to access this page
- Showing error “Function create_function() is deprecated”
- Error 310 too many redirects after switching domains
- How do I set up Debugging?
- Error Logs to Diagnose Error 500 in LAMP
- “Notice: Undefined index:” error when adding new content?
- Recommend a guide to catching plugin errors, please?
- How to handle core code throwing notice on valid input?
- Trying to get property of non-object in wp-includes/capabilities.php
- WordPress home page doesn’t work, but other pages do. How to rectify?
- Unexpected Output: register_activation_hook with namespace
- WP Site Only Shows Javascript for Main Page
- File available but giving 404 in wordpress
- How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library
- In big trouble – Allowed memory size of 268435456 bytes exhausted
- PHP Warning : A non-numeric value encountered
- Wordpres debug.log PHP Notice: is_singular was called
- media_buttons_context is deprecated
- Warning: Declaration of QuietSkin::feedback error
- failed to open stream: No such file or directory
- Getting 403 Access Denied Error Message in new WordPress Post
- update user information
- is_wp_error() and handling errors
- My wordpress site loads perfectly, but I cannot access the menus in the admin panel
- Call to undefined function wp_embed_register_handler()
- Site works fine, but editing page causes error “Call to undefined function _wp_array_get()” in Gutenberg
- Error! 401.shtml file not found, what’s the problem?
- Error wordpress “Call to undefined function aq_resize()” [closed]
- Strange glyphs code error
- Custom slider throwing an error
- err_connection_closed after 20 minutes when loggedin in backend
- How to Fix “Are You Sure You Want to Do This”, while uploading my theme?
- 4.2.2 stuck in an db upgrade loop with “Call to undefined method wpdb::get_col_length()”
- Cannot redeclare maybe_create_table()
- Two Domain pointing to the same WordPress installation
- “Cannot modify header information” means I can’t use wp_redirect
- Debugging: How to determine which plugin is throwing error in plugin.php
- How can I use wordpress functionality outside of WP framework
- Errors in Add Image Popup, Media Library Tab: “in_array() expects parameter 2 to be array, null given in wp-includes/query.php”
- hypanis.ru wordpress vulnerabilty [closed]
- Child Theme Fatal Error [closed]
- Jetpack could not contact wordpress [closed]
- White Screen on Site but wp-admin OK
- Internet Explorer cannot display the webpage
- Problem with UTF8. italian/russian characters
- Internal Server Error only on frontend and certain admin pages
- How to automatically convert “%” and “+” in image urls on upload
- Failed to import “File name”: Invalid post type jetpack-portfolio
- Fatal error: Uncaught Error: Call to undefined function wp() in /home/nr4dxonhypyy/public_html/wp-blog-header.php:16
- Error call_user_func_array() After Installing Plugin
- Error 500 when installing WordPress
- Warning: call_user_func_array()
- “File not found.” appears often while navigating wp-admin
- WordPress Error blank page In section website
- Posts, pages and some images are deleted sometimes
- Call to undefined function wordpress listing_categories
- how do i fix these errors my debug log gave me?
- Undefined index when saved to options
- Fatal error: Call to undefined function wp_add_privacy_policy_content() in /wp-admin/includes/misc.php on line 1822
- Unable to customize themes in wordpress after migrating to https from http
- WordPress logged in but no access to wp-admin
- A SINGLE Post Giving an “Under Maintenance” Message
- Weird Cron Error
- Error messages generated in ‘Customize Your Site’
- Overcome illegal characters [duplicate]
- Undefined Index. But isset not working?
- bypassing permission error for a plugin’s page
- Website Loading Very Slow, Each Time Different File Takes Very Long To Load
- Fatal error: Allowed memory size of bytes exhausted (tried to allocate 36 bytes)
- Internal 500 error: Activating rootio theme and deploying with capistrano
- warnings & errors after MAMP to live (hosteurope)
- Add clickable function in functions.php – parse error [closed]
- Trying to add function with pre_get_posts for plugin search [closed]
- WordPress keep redirecting me to random URLs
- undefined index [closed]
- WordPress is not sending the 2nd email in the same request
- Getting 403 Forbidden Error while trying to edit or delete new posts or existing posts
- Creating a function inside a custom WordPress Plugin [closed]
- Critical error after updating my wordpress