Monthly Archiv: August, 2019

Fast Burn Extreme: Powerful Fat Burning and Energy Boosting Formula?

What is a Keto Diet?

A keto diet is well known for being a low carb diet, where the body produces ketones in the liver to be used as energy. It’s referred to as many different names – ketogenic diet, low carb diet, low carb high fat (LCHF), etc. When you eat something high in carbs, your body will produce glucose and insulin.

This carb reduction forces your body to rely on fats for its main energy source instead of glucose — a process known as ketosis. When you do this, interesting things happen:

  • Enhance Energy Levels
  • Increase Body’s Ability to Turn Fat to Fuel for Weight Loss
  • Promotes Ketosis
  • Improves heart health

Glucose is the easiest molecule for your body to convert and use as energy so that it will be chosen over any other energy source and insulin is produced to process the glucose in your bloodstream by taking it around the body.

Adopting Keto Diet

Research has demonstrated that adopting this low-carb, high-fat diet can promote fat loss and even improve certain conditions such as type 2 diabetes and cognitive decline

The keto diet is essentially a high-protein diet — your meals are 70 or 80 percent fat; about 20 percent protein; and about 5 percent carbohydrate.  When in a day you consume less than 50 grams of carbs, your body will later run out of fuel (blood sugar).  This typically takes 3 to 4 days. Then you’ll start to break down protein and fat for energy, which can make you lose weight. This is the process that naturally occurs in the body called ketosis.

When you deprive your body of carbohydrates, which are the main fuel source for people, you’re also depriving your body of its ability to keep glycogen stores filled up.

The ketones diet may help you lose more weight in the first 3 to 6 months better than other diets can. It could be because it takes more calories to chance fat into energy than it does to change carbs into energy. Also it is possible that you are more satisfied with a high-protein diet than a high-fat diet.

There are some great metabolic changes initially with this diet. Shredding excess weight improves, such as insulin resistance, high blood pressure, and elevated cholesterol and triglycerides. It is true that fat oxidation does increase due to the body adapting to the higher dietary fat intake. However, fat oxidation and losing body fat are two different processes. When fat oxidation is higher it does not necessarily mean that there will be a reduction in body fat. Overall calorie intake and calorie burn will be the main determinant in fat loss.

Keto Supplements

These are known to aid ketogenic dieters. Ketone supplements are not anything new for 2019, but they have been increasing in popularity over the past couple of years. Popular talk show host Dr Oz, has featured these supplements in numerous segments on his talk show. Revealing how ketones can help individuals in losing weight.

Main Ingredients in Ketosis 101

  • BHB;– It is an amazing and primary ingredient in every keto based product. This ingredient plays an important role in operating ketosis process. Without this ingredient every keto based product is useless.
  • Raspberry ketones;– These ketones are helpful in cutting down excess fatty layers. It also increases the metabolic weight in order to improve fat burning process.
  • Garcinia cambogia;– This ingredient is so popular in improving the metabolism system. It includes HCA that helps to control on eating habits. In fact, it is also responsible for slim and healthy body.

Ketosis 101 Ingredients contains Beta-hydroxybutyrate. BHB is the first substrate that kicks the metabolic state of ketosis resulting in energy.

Ketosis 101 Claims and Warrants

Everything has a disclaimer to it, so nothing has been fully tested in clinical trials. But the organization explains the importance of the keto diet and argues that users on their supplement can expect to experience dramatic weight loss. However, with the absence of definitive and dedicated studies on this particular supplement, these claims are difficult to corroborate.

Ketosis 101 Conclusion

While the listing for Ketosis 101 has a high number of positive reviews, its hard for us to say these are all legit product reviewers. Some may be, some may not be.

The perfect times for keto supplements drinks could be before a workout, on an empty stomach, after a high carb meal, or in between meals to improve metabolism. But with Keto 101 it’s extremely easy to use and experience fast weight loss results with.

  1. Take 2 Keto 101 capsules daily with water
  2. Eat keto-friendly meals and snacks throughout the day
  3. Enjoy improved energy and focus while our body uses fat for energy!

The organization requests fairly cheap prices for their supplement compared to others on the internet. As always consumers who try these supplements are encouraged to review the product online, so that they can add to the existing research-base for keto supplement products and companies.

Update Incoming!

We will try and email the Ketosis 101 support team to find out more information and bring transparency to this ketone weight loss supplement. Be sure to check back on our website for updated information on Ketosis 101.

To help you reach your weight loss goals, we suggest you read our guides that link to the top products that are currently on the market; Superfood drinks, detox cleanses, prebiotics, and the best fat burners.

Article source: https://timesofhealth.com/fast-burn-extreme/

Weight Loss Dietary Supplements Market will Register a Staggering 6.0% CAGR through 2026

As per the latest study by Persistence Market Research (PMR), the global weight loss dietary supplements market is anticipated to witness healthy growth. The market is likely to register 6.0% CAGR throughout the forecast period 2017-2026. The global weight loss dietary supplements market is also estimated to bring in US$ 37,177.6 million revenue by 2026 end.

With obesity becoming a global health concern, weight loss continues to be one of the most focused areas. Hence, increasing number of companies are coming up with the new products in weight loss supplements. The increasing consumption and demand for weight loss dietary supplements, regulations on the production of these supplements along with ingredients used are also gaining traction in various countries. The government in various countries are also focusing on the quality and quantity of ingredients used and if any of these ingredients can have severe side-effects, affecting the health of the consumers negatively.

Get Sample Copy of Report @ https://www.persistencemarketresearch.com/samples/20380

Increasing use of Natural and Organic Ingredients in the Weight Loss Dietary Supplements

The negative effects of being obese and overweight are resulting in the increasing use of weight management products. Consumers are also adopting weight loss supplements in forms of pill, liquid, and powder. Hence, with the increase in the use of these supplements, manufacturers are also trying to produce safer products, thereby using organic and natural ingredients and plant-based ingredients. Among various ingredients, green tea extract is considered as one of the most popular and safest ingredients in the weight loss dietary supplements. Similarly, Garcinia cambogia is also being considered as an ingredient in the weight loss supplements. However, these ingredients have been reported to have adverse effects like a headache, constipation, UTI. Hence, there has been an increase in the investment in the research on other organic ingredients that can be used to produce weight loss supplements.

Global Weight Loss Dietary Supplements Market: Segmental Insights

The global weight loss dietary supplements market includes various segments such as end-user, form, ingredients, distribution channel, and region. Based on the form, the market is categorized into powder, liquid, and soft gell/pills. Soft gell/pills are expected to dominate the market during the forecast period. By the end of 2026, soft gell/pills are expected to exceed US$ 18,500 million revenue.

Based on the end-user, the segment consists of men, women and senior citizen. Among these, women are expected to be the largest users of weight loss dietary supplements. Women segment as the end-user is estimated to create an incremental opportunity of more than US$ 7,900 million between 2017 and 2026.

By Distribution Channel, pharmacies drug store is expected to emerge as the largest distribution channel for the weight loss dietary supplements. Pharmacies drug store is estimated to account for more than one-third of the revenue share by the end of 2017.

Based on the ingredients, the segment consists of amino acids, vitamins minerals, botanical supplements, and others. Vitamins minerals are expected to emerge as one of the largest used ingredients in the weight loss dietary supplements. By the end of 2026, vitamins minerals are estimated to exceed US$ 16,900 million revenue.

Region-wise, the market is categorized into Europe, North America, Asia Pacific Excluding Japan (APEJ), Latin America, Japan, and the Middle East and Africa (MEA). Among the given regions, North America is expected to dominate the global weight loss dietary supplements market throughout the forecast period 2017-2026.

Request Customization of this Report @ https://www.persistencemarketresearch.com/request-customization/20380

Global Weight Loss Dietary Supplements Market: Competitive Assessment

Key players in the global weight loss dietary supplements market are Amway (Nutrilite), Abott Laboratories, GlaxoSmithKline, Glanbia, Herbalife International, Pfizer, American Health, Stepan, Nature’s Sunshine Products, and FANCL.

Displaying exif information in WordPress posts

After discovering that WordPress modifies img tags when rendering a page, it crossed my mind that I could display exif information underneath each image on my new photography blog. The basic process is applicable to any manipulation of the content that you would want to do before it is displayed.

To do this, we add a new filter to the the_content hook:

add_filter('the_content', function ($content) {
	// manipulate $content
	return $content;
});

As with all filters, we have to return data in the same format as the first parameter to our function. For the_content, we receive a string which is the post's article text.

The core operation

In my case, all my <img> tags are immediately followed by a <figcaption> tag as I have a caption under each one. I decided to add the exif data within the <figcaption>.

We use regex to find the tags:

if (!preg_match_all( '@img [^>]+><figcaption>[^<]*</figcaption>@', $content, $matches)) {
  return $content;
}

This will store each <img> tag that's followed by a <figcaption> tag into the $matches variable, so we can now iterate over it:

foreach ($matches[0] as $match) {
  // Find the url in the  tag
  if (preg_match('@src="([0-9a-z:/._-]+)@i', $match, $srcList)) {
    $url = $srcList[1];
    if ($url) {
      $postId = attachment_url_to_postid($url);
      if ($postId) {
        $exif = ffp_create_exifcaption($postId);
        $new = str_replace('</figcaption>', $exif .'</figcaption>', $match);
        $content = str_replace($match, $new, $content);
      }
    }
  }
}

This code iterates over each match and finds the url in the src attribute of the image tag. We can then then load the post from that url using the rather helpful $postId = attachment_url_to_postid($url);.

Now that we have an ID, we can create the EXIF caption in a separate function and then finally we append it to the end of the current caption. We do this by simply replacing the closing </figcaption> with our text followed by </figcaption> which is a nice fast operation.

Creating EXIF display string

To create the string of EXIF data, I used a separate function to make it easier.

WordPress has already extracted the EXIF data we require when the image was uploaded into the admin, so we simply need to read it and format it. To get it we do this:

$metadata = wp_get_attachment_metadata($postId);
if (!isset($metadata['image_meta'])) {
  return '';
}
$imagemeta = $meta['image_meta'] ?? [];

$imagemeta is an array of useful characteristics about the image.

We pull the info we care into a set of variables like this:

$camera       = $imagemeta['camera'] ?? null;
$lens         = $imagemeta['lens'] ?? null;
$aperture     = $imagemeta['aperture'] ?? null;
$shutter      = $imagemeta['shutter_speed'] ?? null;
$iso          = $imagemeta['iso'] ?? null;
$focal_length = $imagemeta['focal_length'] ?? null;

if (! ($camera || $lens || $aperture || $shutter || $iso || $focal_length)) {
  return '';
}

(Obviously, if there is no data, there's nothing to do.)

Finally we format it nicely:

$string = '<aside class="exif">';

if ($camera) {
  $string .= '<div><ion-icon name="camera"></ion-icon><span>'.$camera.'</span></div>';
}
if ($lens) {
  $string .='<div><ion-icon name="radio-button-on"></ion-icon><span>'.$lens.'</span></div>';
}

if ($aperture) {
  $aperture = 'f/' . $aperture;
  $string .= '<div><ion-icon name="aperture"></ion-icon><span>'.$aperture.'</span></div>';
}

if ($shutter) {
  $shutter = '1/' . (int)(1.0/(float)$shutter);
  $string .= '<div><ion-icon name="timer"></ion-icon><span>'.$shutter.'</span></div>';
}

if ($iso) {
  $string .= '<div><span class="text-icon">ISO</span><span>'.$iso.'</span></div>';
}

if ($focal_length) {
  $focal_length = (string)(round((float)$focal_length)) . 'mm';
  $string .= '<div><ion-icon name="eye"></ion-icon><span>'.$focal_length.'</span></div>';
}

$string .= '</aside>';
return $string;

We wrap our entire EXIF string in an <aside> tag so that we can style appropriately. Then for each item of data, we display an icon followed by the text information. The icons are Io

Truncated by Planet PHP, read more at the original (another 950 bytes)

Exploring prefers-reduced-motion

Animations and transitions on the web are cool and all, they can make the UI feel snappier and responsive (if used judiciously). However there are problems with motion like this. A whole lot of people are sensitive to motion and you don't want your site to cause motion sickness and dizziness, right?

Luckily, most modern browsers now support prefers-reduced-motion CSS media query. Which means you can skip animations for people who don't want them.

An example of supporting opt-out in CSS:

@media (prefers-reduced-motion: reduce) {
  .widget {
    animation: none;
  }
}

Or opt-in:

@media (prefers-reduced-motion: no-preference) {
  .widget {
    animation: 3s slidein;
  }
}

To test on a Mac, search for "accessibility" to find the preference panel, click Display and check the Reduce motion box (see here for other operating systems).

Well, how about taking care of accessibility and performance? How about putting all the animations and transitions and keyframes CSS code in a separate file and loading it only if people don't mind animations? Wouldn't it be nice to save some bytes? And how? Easy.

You can detect the preference with JavaScript too, using:

const pref = window.matchMedia('(prefers-reduced-motion: no-preference)');

Now pref.matches is true if it's ok to use motion and you can load that extra CSS file that has all the animations and transitions.

So what about legacy browsers without this media query? My vote is: no animations. But if yours is: yes, animations, you can detect if the browser even understands the media query. matchMedia returns an object that contains the media too. Try this in your console:

>> window.matchMedia('(prefers-reduced-motion: no-preference)')
MediaQueryList { media: "(prefers-reduced-motion: no-preference)", matches: false, onchange: null }

If the browser doesn't understand the query it will return "not all" in the media property.

>> window.matchMedia('(omg: bacon)')
MediaQueryList { media: "not all", matches: false, onchange: null }

To wrap it up, I'd do something like:

<link href="css.css" type="text/css" rel="stylesheet">
<script>
if (window.matchMedia('(prefers-reduced-motion: no-preference)').matches) {
  const link = document.createElement('link'); 
  link.type = "text/css";
  link.rel = "stylesheet"
  link.href = "animations.css";
  document.head.appendChild(link);  
}
</script>

But if you want to be sure that old browsers do get animations, you can do:

<link href="css.css" type="text/css" rel="stylesheet">
<script>
const media = "(prefers-reduced-motion: reduce)";
const pref = window.matchMedia(media);
if (pref.media !== media && !pref.matches) {
  const link = document.createElement('link'); 
  link.type = "text/css";
  link.rel = "stylesheet"
  link.href = "animations.css";
  document.head.appendChild(link);  
}
</script>

C'est tout! See you next time!

PHP iNotify Extension Class (New)

Package:
PHP iNotify Extension Class
Summary:
Get notifications of when directory files change
Groups:
Files and Folders, PHP 7
Author:
Kacper Rowinski
Description:
This package can be used to get notifications of when directory files change...

Read more at https://www.phpclasses.org/package/11327-PHP-Get-notifications-of-when-directory-files-change.html

Sales Revenue of Weight Loss Dietary Supplements Market to Soar in the Near Future Owing to Growing Consumer Adoption

As per the latest study by Persistence Market Research (PMR), the global weight loss dietary supplements market is anticipated to witness healthy growth. The market is likely to register 6.0% CAGR throughout the forecast period 2017-2026. The global weight loss dietary supplements market is also estimated to bring in US$ 37,177.6 million revenue by 2026 end.

Get Sample Copy of Report @ https://www.persistencemarketresearch.com/samples/20380

With obesity becoming a global health concern, weight loss continues to be one of the most focused areas. Hence, increasing number of companies are coming up with the new products in weight loss supplements. The increasing consumption and demand for weight loss dietary supplements, regulations on the production of these supplements along with ingredients used are also gaining traction in various countries. The government in various countries are also focusing on the quality and quantity of ingredients used and if any of these ingredients can have severe side-effects, affecting the health of the consumers negatively.

Increasing use of Natural and Organic Ingredients in the Weight Loss Dietary Supplements

The negative effects of being obese and overweight are resulting in the increasing use of weight management products. Consumers are also adopting weight loss supplements in forms of pill, liquid, and powder. Hence, with the increase in the use of these supplements, manufacturers are also trying to produce safer products, thereby using organic and natural ingredients and plant-based ingredients. Among various ingredients, green tea extract is considered as one of the most popular and safest ingredients in the weight loss dietary supplements. Similarly, Garcinia cambogia is also being considered as an ingredient in the weight loss supplements. However, these ingredients have been reported to have adverse effects like a headache, constipation, UTI. Hence, there has been an increase in the investment in the research on other organic ingredients that can be used to produce weight loss supplements.

Global Weight Loss Dietary Supplements Market: Segmental Insights

The global weight loss dietary supplements market includes various segments such as end-user, form, ingredients, distribution channel, and region. Based on the form, the market is categorized into powder, liquid, and soft gell/pills. Soft gell/pills are expected to dominate the market during the forecast period. By the end of 2026, soft gell/pills are expected to exceed US$ 18,500 million revenue.

Based on the end-user, the segment consists of men, women and senior citizen. Among these, women are expected to be the largest users of weight loss dietary supplements. Women segment as the end-user is estimated to create an incremental opportunity of more than US$ 7,900 million between 2017 and 2026.

By Distribution Channel, pharmacies drug store is expected to emerge as the largest distribution channel for the weight loss dietary supplements. Pharmacies drug store is estimated to account for more than one-third of the revenue share by the end of 2017.

Based on the ingredients, the segment consists of amino acids, vitamins minerals, botanical supplements, and others. Vitamins minerals are expected to emerge as one of the largest used ingredients in the weight loss dietary supplements. By the end of 2026, vitamins minerals are estimated to exceed US$ 16,900 million revenue.

Region-wise, the market is categorized into Europe, North America, Asia Pacific Excluding Japan (APEJ), Latin America, Japan, and the Middle East and Africa (MEA). Among the given regions, North America is expected to dominate the global weight loss dietary supplements market throughout the forecast period 2017-2026.

Request Customization of this Report @ https://www.persistencemarketresearch.com/request-customization/20380

Global Weight Loss Dietary Supplements Market: Competitive Assessment

Key players in the global weight loss dietary supplements market are Amway (Nutrilite), Abott Laboratories, GlaxoSmithKline, Glanbia, Herbalife International, Pfizer, American Health, Stepan, Nature’s Sunshine Products, and FANCL.

Chatbots vs Email Marketing: Which Is the Best for Your Business?

Establishing a good relationship with your customers is a crucial step in ensuring your business’ success. A good way to accomplish this is to show them you’re around when they need you, whether it’s to give them the latest updates about your brand or something as simple as answering questions about your products and services.

But paying attention to each and every one of your customers becomes more challenging the larger your clientele becomes. To ensure that nobody gets left out, you can turn to chatbots and email marketing, analyzing which works best for your business.

Chatbots: A Program You Can Talk To

A chatbot is a computer program that is capable of conversing with and responding to human users. The technology is relatively young, so its full potential is still being explored. Basic chatbots can provide preset responses to certain questions, often through an if-then approach, but advanced versions can provide more customized answers and solutions.

Suppose you want to buy something online. Traditionally, you’d have to browse through multiple product pages to find the item you need. With a chatbot, you can ask a question about your desired item and the program will take you directly to relevant product pages. It’s like having your very own shopping assistant.

Example of chatbots in action on mobile device
Image Source

There are many advantages to using chatbots, not only for your business, but also for your customers. Here are some of them:

Better customer service – At the end of the day, chatbots are all about improving user experience. A survey says that more than 80 percent of customers expect assistance during shopping – and they need it within five minutes. Chatbots are designed to provide fast, real-time assistance by offering content and links that your customers may access to find and purchase the products they need.

Higher Net Promoter Score (NPS) – NPS indicates the likelihood that your customers will promote your brand to their peers. One of its most important determiners is customer satisfaction. Many customers are delighted by a business’ quick response, even if their issue isn’t completely resolved. Prompt assistance makes them feel valued, so they become more likely to speak positively to their family and friends about your brand.

Easy and cheap maintenance – Chatbots are easy to configure according to your business’ unique needs. Maintaining them doesn’t require much effort and resources either. For instance, they don’t cost as much as paying one of your staff members to be available 24/7 to entertain and engage your customers.

Accurate consumer data monitoring – Chatbots do more than respond to your customers. They also collect feedback and other insights that you can use to improve your product or service. The data collected by chatbots can also help you monitor your customers’ needs, gauge interest in products and services or specific features, and boost the effectiveness of your marketing efforts.

Example of chatbots in action on mobile device
Image Source

Time savings – You can use bots to send messages to all your clients at the same time. Even as a growing business, you probably have way more customers than you can send messages to manually within a day. A chatbot simplifies the process, saves you a lot of time, and ensures that messages are delivered when needed.

Compatibility with messenger apps – Nobody wants to download and install apps they’ll probably use once and won’t use again. This is why people usually stick to certain apps that get the job done. For instance, most people prefer to use popular messenger apps like Facebook Messenger, WhatsApp, and Viber instead of downloading new ones every so often.

Chatbots are highly compatible with most messenger apps, allowing you to send messages through the media your customers actually use. In fact, chatbots are compatible with most social networks, too, which means you can also use them to improve the effectiveness of your social media strategy.

Increased in-app purchases – If you offer products that your customers can purchase through messaging apps, you can use chatbots to encourage higher sales. Analyze your customers’ buying behavior and program your chatbots to take advantage of any trend or opportunity to sell.


Image Source

Email Marketing: It Still Works

Despite being around for decades, email remains to be a crucial communication channel, and the data proves it. For instance, people sent 1.8 million more emails in 2017 than they did in 2016. And in 2018, 281 billion emails were sent and received daily around the world.

The continued relevance of email marketing rests on its many advantages, which include the following:

Targeted messages thru segmented lists – It’s great to be able to reach out to a lot of people, but it’s even better if your messages reach those who actually need and are likely to respond to them. Email marketers can segment their lists to ensure that only those who meet certain criteria receive a particular message.

With a large number of emails an average person receives in a day, making sure your content is relevant to them is an excellent way to getting noticed in your customer inbox. This tactic is known to increase engagements, making it effective for purposes ranging from spreading awareness about your brand to being an effective tool to grow your ecommerce business with email marketing.


Image Source

Revenue growth– With the right subject line, dynamic content, and call-to-action, it’s possible to influence email readers to purchase your product. When paired with the right targeting strategy, email marketing can be one of the best tools to generate sales from impulse purchases.

Multi-device compatibility – People read their emails on multiple devices, which means you can reach your customers no matter what device they may use. Make sure you optimize your emails for all screens for the best results.

Message testing – Your email is only as good as its content, but it can be hard to create the perfect email on your first try. The good thing about email marketing is that you can send out several versions of the same email to test which ones are the most effective. The feedback you gain may be incorporated to your content marketing strategy to improve your outcomes moving forward.

Lead generation – Many of those who receive your emails won’t make a purchase, but that doesn’t mean your efforts are wasted. By using your succeeding emails to check on them or update them about your products, you can foster a relationship with these leads and eventually convert them into paying customers.

Relationship maintenance – Just because a purchase has been made doesn’t mean you relationship with your customer has ended. Using email, you can keep the relationship going. With the right push, you may turn a one-time buyer into a loyal customer who will stick to your brand long-term.

Email or Chatbots?

Now on to the big question: does your business need chatbots or email marketing more? Without a doubt, both email and chatbots have their strengths and weaknesses, requiring an analysis of which could help your business more.

Chatbots offers quick and highly personalized service to users. It is also entirely driven by consent – your customers absolutely won’t have to use it unless they choose to. Because of this, chatbots tend to generate higher click-through rates and conversion rates. To compare, emails have a CTR of only 4% on average, while chatbots generate up to a whopping 16%.

Chatbots are also not known to send spam messages, which tend to fill up email inboxes and annoy users. Because of this, customers are more likely to read messages you send them via messenger apps.

However, emails are a lot cheaper than chatbots. If you were to look at the two services in the market, you’d see that both of them actually have almost similar price points. The difference is that email, having been around longer, offers more choices in terms of providers. Some email services charge nothing up to a certain number of messages sent, meaning you can send out marketing assets without spending a single cent.

Messenger apps may be popular, but not everyone uses them. People older than 55 tend to use emails more than they do messenger apps. That said, chatbots are generally better for businesses with younger customers, but email marketing is able to reach out to customers of any age.

Chatbots are a developing technology and it is exciting how they will improve in the future. Email, on the other hand, seems like it isn’t going anywhere soon. Find out what each option’s strengths and limitations are and choose which one offers the most benefits to your business. Better yet, why don’t you use both?

The post Chatbots vs Email Marketing: Which Is the Best for Your Business? appeared first on Speckyboy Design Magazine.

506 Variant Also Negotiates

In 1998 RFC2295 was published. It’s experimental, and meant to introduce a new way to do content negotiation in HTTP. As far as I personally know, I don’t think it got a lot of traction.

Traditionally, when a HTTP client wants to do content-negotation, they will send one or more accept headers:

GET / HTTP/1.1
Accept: text/html; image/png; text/*; q=0.9
Accept-Language: en-CA; en
Accept-Charset: UTF-8
Accept-Encoding: gzip, brotli

RFC2295 intended to introduce a new way to do this, with a lot more flexibility and features. The RFC talks about selecting specific variants not just based on mimetype, but also html features a browser supports, color capabilities, screen resolution, speed preference, paper size for printers and even selecting content for specific devices like VR goggles and PDA’s.

An interesting feature is that it can also return a list of urls for specific variations, changing the HTTP model a bit by giving every representation and variant their own url, and returning all this in with a 300 Multiple Choices response.

An example of such a response (from the RFC):

HTTP/1.1 300 Multiple Choices
Date: Tue, 11 Jun 1996 20:02:21 GMT
TCN: list
Alternates: {"paper.1" 0.9 {type text/html} {language en}},
{"paper.2" 0.7 {type text/html} {language fr}},
{"paper.3" 1.0 {type application/postscript}
{language en}}
Vary: negotiate, accept, accept-language
ETag: "blah;1234"
Cache-control: max-age=86400
Content-Type: text/html
Content-Length: 227

<h2>Multiple Choices:</h2>
<ul>
  <li><a href=paper.1>html, English version</a>
  <li><a href=paper.2>html, French version</a>
  <li><a href=paper.3>Postscript, English version</a>
</ul>

The RFC introduces a new error code: 506 Variant Also Negotiates. To the best of my understanding, this error returned when a server is misconfigured and a ‘negotiating resource’ is pointing to another resource that doesn’t serve a representation, but instead also tries to negotiate.

I can imagine that a negotiating resource could for example point to itself, or sets up something like a redirection look. I think 506 is a specific error that a server could return for this case.

Should you use this?

I often include a section that answers whether you should use this status code. In this case, I think it’s better to dive into whether you should support the negotiation feature.

The issue with the feature is that it never left the experimental phase, and as far as I know got very little adoption. It was defined before HTTP/1.1 was finalized, and for all intents and purposes I think it can be considered dead.

However, it solves a couple of really interesting problems that aren’t solved

Truncated by Planet PHP, read more at the original (another 1323 bytes)

Powered by Gewgley