Grow your CSS skills. Land your dream job.

What is a "URL=" in a URL Mean?

  • # October 23, 2013 at 10:48 am

    May be a dumb question, but it’s been bugging me recently. I see “URL=” inside alot of URL’s, such as this one:

    http://www.tierraantigua.com/search-2?url=http%3A%2F%2Flink.flexmls.com%2Fwws30ham2nd%2C12%26propertytype%3DA

    What exactly is this used to do? Is it part of the iFrame functionality? I know the last part of the URL (after the URL=) is the part being displayed in the iFrame, but I’m unsure of why it is included in the primary URL as well.

    Thanks!

    # October 23, 2013 at 12:44 pm

    You visit some website and content is presented by date, api might be like this:
    someurl.com

    Now you want the content sorted by title, something like this:
    someurl.com/?sort=title

    Behind the scenes, sort is like a variable passed to the server, based on the value, we output the desired response.

    We are sending the request to the same page, but the `?sort? parameter in this case, dictates how results are returned. This eliminates the need to build many different pages that basically do same but present info differently. So we make a GET request to the same page, passing in data that server can deal with and return results. (of course you would need to build that functionality, whatever your website is suppose to do with the value passed)

    In the example you posted:

    You are making a GET request on /search-2 with the variable of url with value of http%3A%2F%2Flink.flexmls....

    Hope that helps.
    -Alen

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".