Categories


Archives


Recent Posts


Categories


A Rose by any Other IP Address

astorm

Frustrated by Magento? Then you’ll love Commerce Bug, the must have debugging extension for anyone using Magento. Whether you’re just starting out or you’re a seasoned pro, Commerce Bug will save you and your team hours everyday. Grab a copy and start working with Magento instead of against it.

Updated for Magento 2! No Frills Magento Layout is the only Magento front end book you'll ever need. Get your copy today!

A quick primer (from curl’s most well known maintainer) on requesting websites from servers before you’ve officially changed their DNS entries.

A quick TL;DR; if you’re conserving mouse clicks

For non-SSL/HTTPS sites it’s as simple as changing the HOST header —

    curl --header "Host: example.com" http://127.0.0.1/

If you’re using SSL/HTTPS, things are a bit more complicated. In for this case you’ll want to use the --resolve option

    curl --resolve example.com:443:127.0.0.1 https://example.com/

Here you’ll make the request to the actual URL, and resolve tells curl which IP address to use. There’s more context in the article about why this is necessary.

Copyright © Alana Storm 1975 – 2023 All Rights Reserved

Originally Posted: 24th November 2020

email hidden; JavaScript is required