Questions tagged [http]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
1k views

How to set status codes such as 401 and 403?

Setting a 404 in WordPress can be done quite easily using the set_404() method of WP_Query and the status_header() function. Here's an example taken from WP::handle_404(): $wp_query->set_404(); ...
0
votes
1answer
18 views

Navigation Bar displays vertically on Mozilla

I just started to help maintain our school's website found here: http://www.hawaii.edu/eall/ The problem is that when a Mozilla browser enters the site with https our navigation bar explodes to the ...
0
votes
1answer
80 views

Moving site from HTTP to HTTPS

I've been told to move a site from HTTP to HTTPS. After the hosting said that they installed the SSL certificate, I thought all I had to do was to simply change the site URL from HTTP to HTTPS, but ...
1
vote
2answers
793 views

How are both HTTP and HTTPS versions displaying?

We have a site that somehow has both http and https versions accessible. We want to force it all to https. When we try to set the WordPress and Site URLS to https the site ends up in a redirect loop. ...
2
votes
2answers
7k views

HTTP Error when uploading mp4 video file

This is a repeat issue, but none of the other threads have had a solution that helps me. I am using WordPress 4.7.3 running the Dani theme from Envato. When I try to upload my mp4 video file, I get an ...
0
votes
2answers
571 views

Switch https to http

My https has just expired. I have switch my domain from https to http in wp_options table. But all my assets are still on https when I visited website, I got all assets link error with 404. How can I ...
2
votes
1answer
772 views

How can I change HTTP headers only to posts of a specific category from a plugin

I have a plugin for injecting additional HTTP headers. It works fine with the following CODE: add_action( 'send_headers', 'jim_stop' ); function jim_stop() { header( 'Cache-Control: no-store, no-...
3
votes
2answers
1k views

Setting Last Modified HTTP Header on static Home Page

In response to the question asked here I find myself and this other user needing a solution to set a last modified header that contains the date and time of the most reicent post. Since we both in ...
0
votes
1answer
3k views

Need workaround for insecure XMLHttpRequest endpoint request

I'm building an aggregator of sorts in WordPress that pulls posts using the new API from specific sites. Most if not all of these sites will not have SSL, thus HTTP. Of course, I'm getting "Mixed ...
0
votes
3answers
5k views

How to receive HTTP POST in WP?

How do I listen for and receive a third party HTTP POST in Wordpress so I can process the data in the post inside Wordpress? Not looking for the answer with code but rather the method by which ...
2
votes
1answer
6k views

The resource was preloaded using link preload but not used within a few seconds

I'm using the W3 Total Cache plugin, and have set it to minify and combine CSS and JS files. I have also set it to use the HTTP2 preloading capabilities, though, when I load the site in Chrome, I'm ...
1
vote
1answer
4k views

Can't login to Dashboard when changing site URL to HTTPS

By mistake in my WordPress settings, I changed http to https, and saved it. After it, an option come that "You have to login again", but when I tried to access my website it gives error of SSL etc, ...
0
votes
1answer
52 views

Accessing content from third party as native posts in Wordpress

Can Wordpress be architected to use external content accessed over HTTP instead of reading and writing to a database ? Size of the content available remote is simply huge and potentially modified by ...
0
votes
1answer
592 views

Slow wp-cron HTTP requests

My website is very, very slow. Using Query Monitor, I diagnosed slow HTTP Requests, taking up to 40 seconds (usually 12 secs). These HTTP Requests are POSTs to http://website.com/wp-cron.php?...
1
vote
0answers
85 views

Changing HTTP to HTTPS

I am trying to change my site from HTTP to HTTPS, I read a article where you change the site url in your wordpress setting from http://www.example.com to https://www.example.com . After I do this, I ...
1
vote
1answer
59 views

Is it necessary to check for `content-type` in headers?

There was an older question that I answer where someone wanted to remove the HTTP and HTTPS protocols from the URLs on their website: add_action( 'plugins_loaded', 'output_buffering' ); function ...
3
votes
2answers
3k views

Upgrade to SSL Breaks Admin Dashboard

I am currently running an instance of WordPress, version 4.5.3, on an Amazon EC2 server. It uses: CentOS 7 (OS) and has SELinux enabled. Server runs Apache with mod_security and mod_evasive PHP 5.6....
1
vote
1answer
381 views

Clarity needed on usage of multiple 403 forbidden header() functions at the beginning of the plugin files

Just see the following code snippet. I have came across this in one of the plugins that I am reading now. if ( ! defined( 'ABSPATH' ) ) { header( 'Status: 403 Forbidden' ); header( 'HTTP/1.1 403 ...
0
votes
1answer
325 views

throttle/limit a logged in user's http requests to specific page on a per day basis

I have a resource on my WordPress page that I only want to show X times per day per logged in user. I'm using the twenty sixteen WordPress theme. Currently, Guests / visitors / non logged in users ...
1
vote
1answer
1k views

Remove HTTP: from the site URL and just keep // in it

I am building a website for my company which loads over HTTP inside the company and over HTTPS outside company's network. This is a compulsion and there is no way we can avoid it. The site needs to ...
3
votes
0answers
40 views

HTTP Header on specific page is application instead of text

Problem: clicking on (WP site that I developed) webejeeping.com/vehicles/ causes the generated php file to be downloaded instead of being rendered in the browser. MIME Type returns as "application/...
12
votes
4answers
16k views

Hiding WordPress REST API v2 endpoints from public viewing

I would like to start using the WordPress REST API v2 to query information from my site. I've noticed that when I visit an endpoint URL directly, I can see all of the data publicly. I've also seen ...
-6
votes
1answer
322 views

Wordpress HTTP parameter pollution

Does anyone know if Wordpress is vulnerable to HTTP parameter pollution? I have been receiving some notifications from Acunetix report about it reporting this issue. thanks.
1
vote
0answers
2k views

Uploading .mp3 files http error - 2 “exact” files one successful other fails

I have 2 equal .mp3 files - technically different files but both exported from Audacity using the same settings and the same original audio. Exactly the same size, same content (albeit processed ...
7
votes
1answer
45k views

Switch from https back to http

I recently moved my site to https, by installing a SSL-certificate on the server and updating the site address and site home in the wp-admin to use https. Due to some errors my client is experiencing ...
0
votes
1answer
663 views

Errors on a single host using wp_remote_get() unless sslverify is set to false

I'm testing a plugin on HostGator, GoDaddy, DreamHost and DigitalOcean, developing locally with VVV. I'm running WordPress 4.4.2 across the board. I'm using wp_remote_get() to retrieve weather data ...
1
vote
1answer
1k views

Divert http to https with WordPress on IIS

I have a WordPress site running on IIS. The site has an associated SSL Certificate. Right now I am able to access the site with http and https. How can I get my http to redirect to https? Any help ...
0
votes
1answer
148 views

CSS/JS is not working in multi lang installation

I am facing a problem of loading the CSS and JS files, in the main language (when I type www.site.com) the style is working fine but when I change the language to English ( www.site.com/en/) the ...
3
votes
1answer
753 views

wp_remote_get() not retrieving pages properly

I am using wp_remote_get() to retrieve different pages from the web. It is a news site. Most of the time, this works successfully. However, sometimes, the request returns success (code 200), but the ...
1
vote
0answers
135 views

HTTP Error after finishing uploading a video that is bigger than 64 MB -> After raising the upload limit manually in the wp-config file

I use Dreamhost as my web host. Previously my WordPress upload limit was 64 MB. I asked the tech from Dreamhost to boost it to 400MB. He told me I had to change a setting in my wp-config.php. That's ...
1
vote
2answers
103 views

Running index.php from command line & load balancer health checks

Cutting to the chase, on the command line within wordpress root folder: php index.php Should this always return a response? I'm having a technical discussion with my sysadmin about this issue. Our ...
1
vote
0answers
733 views

How to use https on one page only?

Shortly: I want my WordPress to respond in https on exactly one specifc route. Everything else should respond in http. Is that even possible in WordPress and how to do it? Details I have a single ...
7
votes
1answer
5k views

How to remove rest api link: in http headers?

i would like to remove the "link:" line added to the http headers since wordpress 4.4 here is a curl -I killcandida.org here is the output extract of the line that i would like to delete: Link: &...
0
votes
1answer
554 views

How to make my site use HTTPS for images or how to insert images as relative paths?

I recently added HTTPS to my domain and I have it so that http is redirected to https but my WordPress blog is still using http for it's images. I upload an image and it is using http. Is there ...
2
votes
1answer
33 views

Access general settings trough wordpress files

I was reading an article about HTTPS and that you could turn on SSL and HTTPS for Wordpress quite easily. However in the article it said that you should go to Settings > General Settings within the ...
0
votes
1answer
313 views

couldn't connect to host - wp-cron.php?doing_wp_cron

I've moved my wordpress website to new dedicated server. Website is running few cron jobs setup by wp-cron. As soon as i moved the website to new server cron jobs stopped running. I've debug bar ...
2
votes
1answer
4k views

How can I use CURLOPT_USERPWD in wp_remote_post?

I'm trying to setup a proper cURL call in WordPress so am using wp_remote_post(). However, I'm having trouble authenticating the user via wp_remote_post(). Any idea how to convert the following to be ...
0
votes
1answer
62 views

Turn twitter-urls into list timelines?

I know there's the oEmbed ability to embed a specific tweet, as described in their documentation... but is there any way to simply get the latest in a particular twitter feed, without setting up an ...
7
votes
5answers
4k views

Chrome Version 44.0.2403.89 m is trying to force HTTPS

With the release of Chrome Version 44.0.2403.89 m, I've noticed that our site is now completely broken. All of the HTTP URLs are being redirected to HTTPS URLs, which is a problem because our site ...
1
vote
1answer
734 views

Allow non-SSL pages to use https or Force non-SSL pages to http?

I have a basic question which I did not see previously asked here. I think it belongs here because of the fact that it deals with attempting to secure wordpress. Which is more secure across requests? ...
0
votes
2answers
471 views

Is curl required?

My admin panel is very slow I've tried to debug the issue. I nailed it to the function wp_remote_post and an internal error message thrown by curl on this line return new WP_Error( '...
1
vote
1answer
94 views

Wordpress changing script source from https to http

added three links by request of a international shipping company. Added the code to the head.php doc in my theme folder. Cleared the page cache and re-uploaded the theme cache. When I look at the ...
2
votes
2answers
1k views

Broken urls with http site and https wp-admin

I am currently using a wordpress installation in which all the website is intended to be shown in http while the https part is protected by a self signed certificate, distributed manually to the ...
4
votes
1answer
3k views

HTTP request on localhost failing

I have a Wordpress instance on my development box with the WP REST API plugin installed. I am attempting to create my own plugin to use wp_remote_get() to communicate with my own custom PHP ...
0
votes
1answer
57 views

What is this HTTP_REFERRER “WordPress/4.1.2”

On our website we have huge traffic with same IP and referrer "WordPress/4.1.2; http://www.xxxx.com". The log line looks like: 62.24.2.2 - - [22/Apr/2015:17:28:15 +0200] "GET /wp-content/uploads/...
-1
votes
1answer
4k views

Nice font not working when http to https - SSL Issue

I have two questions here about SSL actually. This is my very first time using ssl for website. 1st question: I have recently purchased an ssl for my websites. I have a nice font for my website which ...
0
votes
2answers
1k views

HTTP error when uploading an image

I know there are already a few posts on this issue, but unfortunately none of those answers were helpful to me. Every time I upload an image, I get an HTTP Error - that's it. Nothing more, no ...
2
votes
1answer
3k views

Remove the http protocol from images

I've been banging my head on the wall trying to filter my posts to remove the http: protocol from the img src and I think I may have found a solution. Does anybody see anything wrong with this ...
2
votes
3answers
5k views

If Modified Since HTTP Header

I am trying to enable 304 If Modified Since HTTP header in my WordPress site. After doing lot of Googling I find out a site where the author said to put the following line at the very end of wordpress ...
7
votes
2answers
14k views

Prevent Wordpress from sending Cache-control http header

My site sits on a server that uses Varnish as a (powerful) caching engine. Unfortunately, it seems wordpress is busting the Varnish cache by sending a cache-control http header. If I curl -I domain....