network.request does not respond correctly?

Well, I need to get the HTML of a LATAM airline page. By specifying best, the page where I need to get the HTML is the reservation page of your ticket. The link corresponds to this:

https://www.latam.com/pt_br/apps/personas/mybookings#reservas?recordLocator= _ YOUR RESERVATION CODE _ &lastName= YOUR LAST NAME

So when I come in with a valid link I have something like this:

https://www.latam.com/pt_br/apps/personas/mybookings#reservas?recordLocator=AZXFAS&lastName=SILVA

* I can not pass a valid link because of customer safety

If I paste the valid link in my browser, it loads the page, then loads a little more and shows me my trip date, if I want to change something on the trip, if I want to choose my seats and so on.

What I need to do :

I have spreadsheets with more than 2000 reservations, I just need to check if my spreadsheet reservation is valid or not. Soon I thought: Easy! A network.request to take reservation by reservation and in valid link cases there will be some more information that I will receive in my network.request, so I would do a simple check using the string.find inside the event.response and I would know soon if the reservation is valid or not.

Code:

local function networkListener( event ) if ( event.isError ) then print( "Network error: ", event.response ) else local ans = event.response print ( event.response ) print(" ") print(" ") print( string.find( ans, "data-dtconfig", 1) ) end end local url = "https://www.latam.com/pt\_br/apps/personas/mybookings#reservas?recordLocator=zzzzz&lastName=SILVA" network.request(url, "GET", networkListener ) 

Problem I found:

Well, regardless if I put a valid link or not, the network request ALWAYS returns error (404) on the page, as if it was not found. And you know what’s weird? If I use WebView it loads the right page.

That is, I am missing something in network.request … Does anyone know me explain what I am doing wrong?

Console response when trying to connect with a valid link:

23:54:05.107  <!DOCTYPE html>

23:54:05.107  <!-- Main header files -->

23:54:05.107  <head>

23:54:05.107    <meta charset=“utf-8”>

23:54:05.107    <meta http-equiv=“X-UA-Compatible” content=“IE=edge”>

23:54:05.107    <title>No encontramos la página | LATAM Airlines</title>

23:54:05.107    <meta name=“viewport” content=“width=device-width, user-scalable=no, initial-scale=1.0”>

23:54:05.107    <meta name=“description” content="">

23:54:05.107  

23:54:05.107    <meta property=“og:title” content=“Error 404 LATAM”/>

23:54:05.107    <meta property=“og:image” content="http://upload.wikimedia.org/wikipedia/commons/c/ca/1x1.png"/>

23:54:05.107    <meta property=“og:description” content=""/>

23:54:05.107  

23:54:05.107    <!-- Site CSS -->

23:54:05.107    <link rel=“stylesheet” href="https://s.latamstatic.com/layout/ui/3/css/bootstrap.min.css">

23:54:05.107    <link rel=“stylesheet” href="https://s.latamstatic.com/layout/ui/3/css/global.min.css">

23:54:05.107    <link rel=“stylesheet” href="https://s.latamstatic.com/layout/ui/3/css/latam-mu.min.css">

23:54:05.107    <link rel=“stylesheet” href="/assets/ns/css/main-latam-error-pages.css">

23:54:05.107  </head>

23:54:05.107  

23:54:05.107  <body>

23:54:05.107  

23:54:05.107  <!-- Google Tag Manager (noscript) -->

23:54:05.107  <noscript><iframe src=“https://www.googletagmanager.com/ns.html?id=GTM-RPVH” height=“0” width=“0” style=“display:none; visibility:hidden”></iframe></noscript>

23:54:05.107  <!-- End Google Tag Manager (noscript) -->

23:54:05.107  

23:54:05.107  <main class=“ErrorPages” role=“main” data-url-src="/assets/ns/data/routes.json" data-error=“404”>

23:54:05.107    <section class=“l-section”>

23:54:05.107      <div class=“container”>

23:54:05.107        <div class=“ErrorPages-content”>

23:54:05.107    <!-- Mobile only component–>

23:54:05.107    <div class=“ErrorPages-errorType visible-xs”>

23:54:05.107      <div class=“ErrorPages-errorText”>

23:54:05.107        <h2>Error</h2>

23:54:05.107      </div>

23:54:05.107      <div class=“ErrorPages-errorNumber”>

23:54:05.107        <h2>404</h2>

23:54:05.107      </div>

23:54:05.107    </div>

23:54:05.107    <!-- Mobile only component–>

23:54:05.107    <div class=“row”>

23:54:05.107      <div class=“col-md-6 col-sm-7 col-xs-12”>

23:54:05.107        <div class=“row”>

23:54:05.107          <div class=“col-md-11 pull-right”>

23:54:05.107            <div class=“ErrorPages-infoCard”>

23:54:05.107              <div class=“ErrorPages-logoCard”>

23:54:05.107                <img src="/assets/ns/images/content-image/header/logo_latam_color.svg" alt=“LATAM Airlines”/>

23:54:05.107              </div>

23:54:05.107              <div class=“ErrorPages-infoText”>

23:54:05.107                <h2 role=“heading” aria-level=“1”>No encontramos la página</h2>

23:54:05.107                <div class=“richtext”>

23:54:05.107                  <p>Es posible que la página que buscas ya no exista o que haya cambiado su nombre.</p>

23:54:05.107                  <p>Te invitamos a continuar tu navegación desde nuestra página de inicio.</p>

23:54:05.107                </div>

23:54:05.107              </div>

23:54:05.107              <div class=“ErrorPages-callToAction”>

23:54:05.107                <div class=“ErrorPages-buttonAction”>

23:54:05.107                  <a href=“http://www.latam.com/” class=“btn-flat first-level flat-large”>

23:54:05.107                    <span class=“Btn-textBox”>

23:54:05.107                      <span class=“Btn-text”>Ir al home</span>

23:54:05.107                    </span>

23:54:05.107                  </a>

23:54:05.107                </div>

23:54:05.107              </div>

23:54:05.107            </div>

23:54:05.107          </div>

23:54:05.107        </div>

23:54:05.107      </div>

23:54:05.107      <div class=“col-md-6 hidden-xs”>

23:54:05.107        <div class=“row”>

23:54:05.107          <div class=“col-md-11 pull-left”>

23:54:05.107            <div class=“ErrorPages-errorType”>

23:54:05.107              <div class=“ErrorPages-errorText”>

23:54:05.107                <h2>Error</h2>

23:54:05.107              </div>

23:54:05.107              <div class=“ErrorPages-errorNumber”>

23:54:05.107                <h2>404</h2>

23:54:05.107              </div>

23:54:05.107            </div>

23:54:05.107          </div>

23:54:05.107        </div>

23:54:05.107      </div>

23:54:05.107    </div>

23:54:05.107  </div>

23:54:05.107  <div class=“ErrorPages-destination”></div>

23:54:05.107  

23:54:05.107      </div>

23:54:05.107    </section>

23:54:05.107  </main>

23:54:05.107  <!-- jQuery -->

23:54:05.107  <script src=“https://code.jquery.com/jquery-1.11.1.min.js” type=“text/javascript”></script>

23:54:05.107  <!-- Cookies Utils -->

23:54:05.107  <script src="/scripts/ns/cookiesUtils.js" type=“text/javascript”></script>

23:54:05.107  <!-- Site JS -->

23:54:05.107  <script src="/scripts/ns/error-page.js" type=“text/javascript”></script>

23:54:05.107  

23:54:05.107  </body>

23:54:05.107  </html>

Note: As it now stands, a valid link and an invalid link is not making any difference to the event.response because the network.request is not working correctly

someone can help?

I dug into this to see if there were some weird redirects going on. Perhaps if you put together a simple test app that includes a config.lua and build.settings in a .zip file and share it with us we can take a look at it running in the simulator and/or on a test device and see if we can see something. 

Rob

Use POST-method instead:

local function networkListener( event ) if ( event.isError ) then print( "Network error: ", event.response ) else local ans = event.response print ( event.response ) print(" ") print(" ") print( string.find( ans, "data-dtconfig", 1) ) end end local url = "https://www.latam.com/pt\_br/apps/personas/mybookings?" local params = {} params.body = "recordLocator=zzzzz&lastName=SILVA" network.request(url, "POST", networkListener, params ) 

This returns the following:

11:10:08.098 \<!DOCTYPE html\> 11:10:08.098 \<html lang="pt"\> 11:10:08.098 \<head\> 11:10:08.098 \<meta http-equiv="Content-Type" content="text/html; charset=utf-8"\> 11:10:08.098 \<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"\> 11:10:08.098 \<title\>Minhas Viagens | Todas as informa&ccedil;&otilde;es sobre as suas viagens | LATAM Linhas A&eacute;reas Brasil\</title\> 11:10:08.098 \<meta name="viewport" content="width=device-width, initial-scale=1.0"\> 11:10:08.098 \<script type="text/javascript" src="/dtagent\_ICA23bpqrx\_6000500091501.js" data-dtconfig="rid=RID\_-2061999971|rpid=-1269469780|domain=latam.com|bandwidth=300|tp=500,50,0,1|reportUrl=dynaTraceMonitor|agentUri=/dtagent\_ICA23bpqrx\_6000500091501.js"\>\</script\>\<link rel="shortcut icon" type="image/x-icon" href="https://s.latamstatic.com/static/latam/images/favicon/LATAM/favicon.ico"\> 11:10:08.098 11:10:08.098 \<meta name="layout" content="personas\_bs3\_latam\_mu"/\> 11:10:08.098 11:10:08.098 \<meta content="Verifique e administre todas as informa&ccedil;&otilde;es sobre os seus voos e servi&ccedil;os dispon&iacute;veis para aproveitar suas viagens com a LATAM Airlines." name="description"\> 11:10:08.098 \<meta content="LAN.com" name="keywords"\> 11:10:08.098 11:10:08.098 \<meta scheme="tracker" name="sessionId" content="C1B61344A40E868DB04AB5541EA2CB46"/\> 11:10:08.098 \<meta scheme="tracker" name="matchedScenario" content="latam"/\> 11:10:08.098 \<meta scheme="tracker" name="template" content="personas\_bs3\_latam\_mu"/\> 11:10:08.098 \<meta scheme="tracker" name="userDataCookieRawData" content="null"/\> 11:10:08.098 \<meta scheme="tracker" name="appVersion" content="3.0.36"/\> 11:10:08.098 11:10:08.098 11:10:08.098 \<link rel="stylesheet" href="https://s.latamstatic.com/layout/ui/3/css/bootstrap.min.css" type="text/css"\> 11:10:08.098 \<link rel="stylesheet" href="https://s.latamstatic.com/layout/ui/3/css/global.min.css" type="text/css"\> 11:10:08.098 \<link rel="stylesheet" href="https://s.latamstatic.com/layout/ui/3/css/latam-mu.min.css" type="text/css"\> 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 \<script type="text/javascript" src="https://s.latamstatic.com/js/libs/external/modernizr/2.6.2/modernizr.custom.js"\>\</script\> 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 \<!--[if lt IE 9]\> 11:10:08.098 \<script src="/js/libs/external/compatibility/shiv/3.7.0/html5shiv.js"\>\</script\> 11:10:08.098 \<![endif]--\> 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 \<!--[if lt IE 9]\> 11:10:08.098 \<script src="/js/libs/external/respond/1.4.2/respond.min.js"\>\</script\> 11:10:08.098 \<![endif]--\> 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 \</head\> 11:10:08.098 \<body onload="removeBodyPadding();"\> 11:10:08.098 \<div class="hyf-modal-black"\>\</div\> 11:10:08.098 \<div class="hyf-mu-wrapper"\> 11:10:08.098 11:10:08.098 \<noscript\>\<iframe src="//www.googletagmanager.com/ns.html?id=GTM-RPVH" height="0" width="0" style="display: none; visibility: hidden"\>\</iframe\>\</noscript\>\<script type="text/javascript"\>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-RPVH');\</script\> 11:10:08.098 11:10:08.098 11:10:08.098 \<style id="styleHeaderLatam"\> 11:10:08.098 /\* style fixes \*/ 11:10:08.098 html {margin:0;padding:0;min-height:100%;position:relative} 11:10:08.098 body {margin:0;padding:0;} 11:10:08.098 a \> [class^="icon-"], a \> [class\*="icon-"] { 11:10:08.098 margin: 5px 22px 0 0; 11:10:08.098 } 11:10:08.098 .hyf-modal-black{display:none;opacity: 1;background-color: rgba(0,0,0,0.8);position: fixed;top: 0;left: 0;right: 0;bottom: 0;margin: 0;z-index: 99999999998;-webkit-transition: all 1s;-moz-transition: all 1s;transition: all 1s;} 11:10:08.098 .hyf-not-underline {text-decoration: none} 11:10:08.098 .hyf-icon-clear{float:none;margin:0} 11:10:08.098 /\* style fixes \*/ 11:10:08.098 11:10:08.098 .hyf-mobile-view {height:100%;overflow:hidden} 11:10:08.098 .hyf\_mu\_wrapper,.hyf\_mu\_header,.hyf-mu-content,.hyf-mu-footer {padding:0;margin:0;} 11:10:08.098 .hyf\_mu\_wrapper {min-height:100%;position:relative;} 11:10:08.098 .hyf-mu-header {position:relative;} 11:10:08.098 @media(min-width: 768px){ .hyf-mu-header {position: fixed;top: 0;width: 100%;z-index: 100;} #appMain {margin-top: 36px;} } 11:10:08.098 .hyf-mu-header-container {height:36px;background-color:#1B0088;position:relative;font-family: 'Latam-Sans-Regular'} 11:10:08.098 .hyf-mu-content {} 11:10:08.098 .hyf-mu-footer {background:#1B0088;width:100%;position:absolute;bottom:0;left:0;} 11:10:08.098 11:10:08.098 .hyf-goleft {position:relative;float:left;} 11:10:08.098 .hyf-alleft {text-align: left} 11:10:08.098 .hyf-goright {position:relative;float:right;} 11:10:08.098 .hyf-alright {text-align: right} 11:10:08.098 .hyf-container{max-width:960px;margin:0 auto;position:relative;} 11:10:08.098 .hyf-goup {text-transform:uppercase;} 11:10:08.098 .hyf-col-25 {width:25%;float:left;} 11:10:08.098 .hyf-col-100 {width:100%;float:left;} 11:10:08.098 11:10:08.098 /\* Objetos \*/ 11:10:08.098 .hyf-header-section{height:36px;font-size:1em;} 11:10:08.098 .hyf-header-section .hyf-header-element{vertical-align: middle;padding:8px 0px;text-decoration: none;color:#b8b8b8;margin: 0px 5px;border: none;top:6px;position: relative;} 11:10:08.098 .hyf-contry-ul li a:focus {outline:#1B0088 auto 2px;} 11:10:08.098 .hyf-header-section .hyf-header-element span {padding-top: 5px;margin:0;color:#ffffff} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-goup.hyf-pais-show:hover {background-color:#f3f3f3;color:#1B0088} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-goup.hyf-pais-hide {background-color:rgb(243,243,243);background-color:rgba(243,243,243,97);color:#1B0088;} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-goup.hyf-pais-hide:focus {border:none;} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {display:none;text-align: left;text-decoration:none;font-size:14px;font-family: 'Latam-Sans-Regular', arial, sans-serif;border:0;color:#fff;padding:0 0 0 40px;} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login span{color:#fff;text-decoration: none} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login span:hover{text-decoration: none} 11:10:08.098 .hyf-header-section .hyf-header-element a.hyf-login:hover {background-color:#ed1650;text-decoration:none} 11:10:08.098 .hyf-login-info {position:absolute;;background-color:#fff;padding: 10px 25px 20px 25px;border-bottom-left-radius: 5px;width:100%;border-bottom-right-radius: 5px;border-top-left-radius: 0;border-top-right-radius: 0;border: 1px solid #bfbfbf;color:#666666;z-index:2;display:none} 11:10:08.098 .hyf-login-info a {display:block;margin:6px 0;color:#666666;text-decoration: none;font-family: 'Latam-Sans-Bold'} 11:10:08.098 .hyf-login-info a:hover {text-decoration: underline} 11:10:08.098 .hyf-login-info a:last-child {text-align: right;margin-top: 15px;margin-bottom: 0px;border-top: 2px solid #b30f3b;padding-top: 10px;} 11:10:08.098 .hyf-login-link {color:white;text-decoration: none} 11:10:08.098 .hyf-login-text {max-width:223px;overflow:hidden;text-overflow:ellipsis;white-space: nowrap} 11:10:08.098 #hyf-icon-log-icon,#hyf-icon-log-iconi {margin: -5px -28px -13px -45px;color: #fff;} 11:10:08.098 #hyf-icon-log-caret {float:right;margin:10px 5px;color:#fff} 11:10:08.098 11:10:08.098 .hyf-country-selector {position:absolute;overflow: hidden;border:1px solid #f3f3f3; 11:10:08.098 border-radius: 0 0 1px 1px;padding:10px 15px;color:#666666;text-align: left;z-index: 99999999999;max-width:930px;box-sizing: border-box; 11:10:08.098 -webkit-box-shadow: 0 1px 1.68px 1.32px rgba(0,2,0,0.5); 11:10:08.098 -moz-box-shadow: 0 1px 1.68px 1.32px rgba(0,2,0,0.5); 11:10:08.098 box-shadow: 0 1px 1.68px 1.32px rgba(0,2,0,0.5); 11:10:08.098 } 11:10:08.098 .hyf-country-selector ul {list-style:none;margin:0;padding:0} 11:10:08.098 .hyf-country-selector ul li{list-style:none;margin:0 0 10px 0;padding:0;font-size:1em;} 11:10:08.098 .hyf-country-selector .hyf-country-selector-title {font-size:1em;font-family:'Latam-Sans-Bold';margin-top:10px;margin-bottom: 11px} 11:10:08.098 .hyf-logo {padding:0;height:70px;line-height:80px;margin-top:20px;margin-bottom: 20px;position:relative;} 11:10:08.098 .hyf-logo a{position:relative;margin-right:42px} 11:10:08.098 .hyf-header-section .hyf-header-element.Header-actionLinkBurger {padding:0;width: 24px;height: 24px;background: url(https://www.latam.com/static/latam/images/content-image/header/icn-burger.svg) no-repeat center center;} 11:10:08.098 .hyf-header-section .hyf-header-element.Header-userLink{padding:0;width: 24px;height: 24px;float: none;top: 0px;right: 20px;} 11:10:08.098 /\*\* focos \*\*/ 11:10:08.098 .hyf-only-focusable {position: absolute;width: 1px;height: 1px;padding: 0; margin: -1px;overflow: hidden;clip: rect(0,0,0,0);border: 0;} 11:10:08.098 .hyf-only-focusable:focus {position:relative;width:auto;height: auto;overflow:hidden;clip: auto;display:inline-block;background-color:#fff; color: #1B0088;margin:5px;outline: 2px solid #1B0088;outline-offset:0px;} 11:10:08.098 .text-skip-to-main-content{margin:0;} 11:10:08.098 .hyf-header-section .hyf-header-element:focus{outline:2px solid #b8b8b8;outline-offset:0px;} 11:10:08.098 .hyf-logo a:focus {outline:2px solid #1B0088;} 11:10:08.098 .hyf-logoLink {position:absolute;top:5px;left:5px;} 11:10:08.098 .hyf-logoLink:focus {outline:2px solid #b8b8b8;outline-offset:0} 11:10:08.098 .hyf-logoOneWorldLink {position:absolute;top:5px;left:100px;} 11:10:08.098 .hyf-logoOneWorldLink:focus {outline:2px solid #b8b8b8;outline-offset:0} 11:10:08.098 #mobileHeader {background-color:#1B0088;border-bottom-color: #b8b8b8;font-family: 'Latam-Sans-Regular';color:#fff;font-size:14px;height:50px;padding-top:10px;position:relative;} 11:10:08.098 #mobileTitle {font-size: 25px;font-weight: 700;margin:0;text-align: center;color:#fff} 11:10:08.098 .hyf-returnLink {float:left;} 11:10:08.098 #hyf-returnLink:focus {outline:2px solid #b8b8b8;outline-offset:0} 11:10:08.098 .hyf-cs-div {background-color:white;position:absolute;height:80px;top:0;left:0px;width:100%;padding:10px;overflow:hidden;} 11:10:08.098 .hyf-cs-div a {width:100%;display:block;margin:10px 5px;text-decoration: none;color:#666666} 11:10:08.098 .hyf-cs-margin {position:relative;height:60px} 11:10:08.098 #hideMenu,#hyf-country-selector{display: none;} 11:10:08.098 a.hyf-login-link {outline: none;text-decoration: none} 11:10:08.098 11:10:08.098 /\* BANDERAS \*/ 11:10:08.098 .lt-icon-flag {background-image: url(https://www.latam.com/static/latam/images/design-image/sprites/icon-sprite.png);float:left;margin:5px 22px 0 0;} 11:10:08.098 11:10:08.098 .lt-icon-ar-small { background-position: -85px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-ar { background-position: 0px -100px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-au-small { background-position: -51px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-au { background-position: -30px -20px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-br-small { background-position: -17px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-br { background-position: -30px -40px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-ca-small { background-position: -120px -99px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-ca { background-position: -60px -20px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-cl-small { background-position: -120px -77px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-cl { background-position: 0px -60px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-co-small { background-position: -30px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-co { background-position: -60px -60px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-de-small { background-position: -120px -33px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-de { background-position: -90px -20px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-ec-small { background-position: -120px -11px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-ec { background-position: -90px -60px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-es-small { background-position: -98px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-es { background-position: -30px -80px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-eu-small { background-position: -64px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-eu { background-position: -90px -80px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-fr-small { background-position: -47px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-fr { background-position: 0px 0px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-it-small { background-position: -120px -55px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-it { background-position: -60px -80px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-mx-small { background-position: -81px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-mx { background-position: 0px -80px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-nz-small { background-position: -120px 0px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-nz { background-position: -90px -40px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-otros\_paises-small { background-position: -120px -22px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-otros\_paises { background-position: -90px 0px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-pe-small { background-position: -120px -44px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-pe { background-position: -30px -60px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-pr-small { background-position: -120px -66px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-pr { background-position: -60px -40px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-sa-small { background-position: -120px -88px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-sa { background-position: -60px 0px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-ue-small { background-position: 0px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-ue { background-position: 0px -40px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-uk-small { background-position: -34px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-uk { background-position: 0px -20px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-uy-small { background-position: -68px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-uy { background-position: -30px 0px; width: 30px; height: 20px;} 11:10:08.098 11:10:08.098 /\*clases para ocultar\*/ 11:10:08.098 11:10:08.098 /\* Custom, iPhone Retina \*/ 11:10:08.098 @media only screen and (max-width : 319px){ 11:10:08.098 .hyf-visible-xs{display: inline;} .hyf-hidden-xs{display: none;} .hyf-visibleb-xs{display: block;} .hyf-visibleib-xs{display:inline-block;} 11:10:08.098 .hyf-col-25 {width:100%;} .hyf-flag-centrado {display:block;padding-top: 6px} 11:10:08.098 .hyf-mu-content {padding-bottom:135px;} 11:10:08.098 .hyf-mu-footer {height:135px;} 11:10:08.098 .hyf-contry-ul li a {display:inline;} 11:10:08.098 .hyf-country-selector{margin-top: -36px;width:85%;right:0px;background-color:#e5e5e5;} 11:10:08.098 #hyf-icon-log-caret {display:none} 11:10:08.098 #hyf-icon-log-iconi {display: block} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#b30f3b} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: transparent} 11:10:08.098 } 11:10:08.098 @media only screen and (min-width : 320px){ 11:10:08.098 .hyf-visible-xs{display: inline;} .hyf-hidden-xs{display: none;}.hyf-visibleb-xs{display: block;} .hyf-visibleib-xs{display:inline-block;} 11:10:08.098 .hyf-col-25 {width:100%;} .hyf-flag-centrado {display:block;padding-top: 6px} 11:10:08.098 .hyf-mu-content {padding-bottom:135px;} 11:10:08.098 .hyf-mu-footer {height:135px;} 11:10:08.098 .hyf-contry-ul li a {display:inline;} 11:10:08.098 .hyf-country-selector{margin-top: -36px;width:85%;right:0px;background-color:#e5e5e5;} 11:10:08.098 #hyf-icon-log-caret {display:none} 11:10:08.098 #hyf-icon-log-iconi {display: block} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#b30f3b} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: transparent} 11:10:08.098 } 11:10:08.098 /\* Extra Small Devices, Phones \*/ 11:10:08.098 @media only screen and (min-width : 480px){ 11:10:08.098 .hyf-visible-xs{display: inline;} .hyf-hidden-xs{display: none;} .hyf-visibleb-xs{display: block;} .hyf-visibleib-xs{display:inline-block;} 11:10:08.098 .hyf-col-25 {width:100%;} .hyf-flag-centrado {display:block;padding-top: 6px} 11:10:08.098 .hyf-mu-content {padding-bottom:135px;} 11:10:08.098 .hyf-mu-footer {height:135px;} 11:10:08.098 .hyf-contry-ul li a {display:inline;} 11:10:08.098 .hyf-country-selector{margin-top: -36px;width:85%;right:0px;background-color:#e5e5e5;} 11:10:08.098 #hyf-icon-log-caret {display:none} 11:10:08.098 #hyf-icon-log-iconi {display: block} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#b30f3b} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: transparent} 11:10:08.098 } 11:10:08.098 /\* Small Devices, Tablets \*/ 11:10:08.098 @media only screen and (min-width : 768px){ 11:10:08.098 .hyf-visible-sm{display: inline;} .hyf-hidden-sm{display: none;} .hyf-visibleb-sm{display: block;} 11:10:08.098 .hyf-col-25 {width:25%;} .hyf-flag-centrado {display:inline;padding:0;} 11:10:08.098 .hyf-mu-content {padding-bottom:76px;} 11:10:08.098 .hyf-mu-footer {height:76px;} 11:10:08.098 .hyf-contry-ul li a {display:inline-block;} 11:10:08.098 #hyf-icon-log-caret {display:inline-table} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#fff} 11:10:08.098 #hyf-icon-log-iconi {display: none} 11:10:08.098 .hyf-country-selector{margin-top:0px;width:100%;background-color:rgb(243,243,243);background-color:rgba(243,243,243,97);} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: #b30f3b} 11:10:08.098 } 11:10:08.098 /\* Medium Devices, Desktops \*/ 11:10:08.098 @media only screen and (min-width : 992px){ 11:10:08.098 .hyf-visible-md{display: inline;} .hyf-hidden-md{display: none;} .hyf-visibleb-md{display: block;} 11:10:08.098 .hyf-col-25 {width:25%;} .hyf-flag-centrado {display:inline;padding:0;} 11:10:08.098 .hyf-mu-content {padding-bottom:76px;} 11:10:08.098 .hyf-mu-footer {height:76px;} 11:10:08.098 .hyf-contry-ul li a {display:inline-block;} 11:10:08.098 #hyf-icon-log-caret {display:inline-table} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#fff} 11:10:08.098 .hyf-country-selector{margin-top:0px;width:100%;background-color:rgb(243,243,243);background-color:rgba(243,243,243,97);} 11:10:08.098 #hyf-icon-log-iconi {display: none} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: #b30f3b} 11:10:08.098 } 11:10:08.098 /\* Large Devices, Wide Screens \*/ 11:10:08.098 @media only screen and (min-width : 1200px){ 11:10:08.098 .hyf-visible-lg{display: inline;} .hyf-hidden-lg{display: none;} .hyf-visibleb-md{display: block;} 11:10:08.098 .hyf-col-25 {width:25%;} .hyf-flag-centrado {display:inline;padding:0;} 11:10:08.098 .hyf-mu-content {padding-bottom:76px;} 11:10:08.098 .hyf-mu-footer {height:76px;} 11:10:08.098 .hyf-contry-ul li a {display:inline-block;} 11:10:08.098 #hyf-icon-log-caret {display:inline-table} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#fff} 11:10:08.098 #hyf-icon-log-iconi {display: none} 11:10:08.098 .hyf-country-selector{margin-top:0px;width:100%;background-color:rgb(243,243,243);background-color:rgba(243,243,243,97);} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: #b30f3b} 11:10:08.098 } 11:10:08.098 \</style\> 11:10:08.098 11:10:08.098 \<div class="hyf-mu-header" id="hyfLatam" role="banner" style="display:none"\> 11:10:08.098 \<div class="hyf-container" role="application"\> 11:10:08.098 \<a class="hyf-only-focusable" onkeydown="skipToMainContent(event);" href="#appMain" title="Ir para o conte&amp;uacute;do principal"\> 11:10:08.098 \<span class="text-skip-to-main-content"\>Ir para o conte&amp;uacute;do principal\</span\> 11:10:08.098 \</a\> 11:10:08.098 \</div\> 11:10:08.098 \<nav class="hyf-mu-header-container" role="navigation"\> 11:10:08.098 \<section class="hyf-container hyf-header-section"\> 11:10:08.098 \<div class="hyf-goleft"\> 11:10:08.098 \<a class="hyf-header-element hyf-hidden-xs hyf-visible-sm hyf-visible-md hyf-visible-lg" href="https://www.latam.com"\>\<img src="https://s.latamstatic.com/static/latam/images/content-image/header/latam-logo-sticky.svg" alt="LATAM Logo" class="Header-logoImg" width="110px" height="25px"\> 11:10:08.098 \</a\> 11:10:08.098 \<a class="hyf-header-element hyf-visible-xs hyf-hidden-sm hyf-hidden-md hyf-hidden-lg" href="https://www.latam.com"\>\<img src="https://s.latamstatic.com/static/latam/images/content-image/header/latam-logo-sticky.svg" alt="LATAM Logo" height="28px"\>\</a\> 11:10:08.098 \</div\> 11:10:08.098 \<div class="hyf-goright"\> 11:10:08.098 \</a\> 11:10:08.098 11:10:08.098 11:10:08.098 \<a href="https://www.latam.com/pt\_br/central-de-ajuda/contato/" class=" hyf-header-element hyf-hidden-xs hyf-visible-sm hyf-visible-md hyf-visible-lg" target="\_self"\> 11:10:08.098 Contato 11:10:08.098 \</a\> 11:10:08.098 \<a href="https://www.latam.com/pt\_br/central-de-ajuda/contato/" class=" hyf-header-element hyf-visible-xs hyf-hidden-sm hyf-hidden-md hyf-hidden-lg" target="\_self"\> 11:10:08.098 \<span class="icon-bold-int015 icon-medium"\>\</span\> 11:10:08.098 \</a\> 11:10:08.098 11:10:08.098 11:10:08.098 \</div\> 11:10:08.098 \</section\> 11:10:08.098 \</nav\> 11:10:08.098 \</div\> 11:10:08.098 \<script type="text/javascript"\>(function(){function header(){this.homesMultiplus=[];this.appsMultiplus=[];};header.prototype={cleanSelector:function(selector){selector.forEach(function(select){document.querySelector(select).removeAttribute("style");});},removeStyles:function(selectors){selectors.forEach(function(select){document.querySelector(select).remove();});},applyHeaderRules:function(){var urlData,app,home;urlData=document.location.pathname;urlData=urlData.split("/");app=urlData[4];home=urlData[1];this.cleanSelector(["#hyfLatam"]);}};var header=new header();header.applyHeaderRules();})();\</script\> 11:10:08.098 11:10:08.098 11:10:08.098 \<div id="appMain" class="hyf-mu-content" tabIndex="-1" role="main"\> 11:10:08.098 \<div class="container"\> 11:10:08.098 \<noscript\> 11:10:08.098 \<div\>Para una mejor experiencia en LAN.com, habilite JavaScript 11:10:08.098 en su navegador\</div\> 11:10:08.098 \</noscript\> 11:10:08.098 \<div id="mainContent"\> 11:10:08.098 \</div\> 11:10:08.099 \<script type="text/javascript"\>(function(global){global.LAN=global.LAN?global.LAN:{};})(this);LAN.Environment={env:'production',jsLibBaseUrl:'/js/libs/',cssBaseUrl:'/layout/ui/3/css/',lastDirectRequest:'2018-08-24T09:10:06+0000',dictionary:true,debug:false,home:'pt\_br',site:'lan',country:'BR',language:'PT',portal:'personas',application:'mybookings',step:'',appDist:'dist',jsAppBaseUrl:'/apps/mybookings/2.2.1/',appMainContent:'mainContent'};LAN.Configuration={'urlHome':'http://www.lan.com/','paasDomain':'https://bff.latam.com','urlConfiguration':'/ws/application/common/configuration/1.1/rest/search\_configuration','cmsUrl':'http://www.lan.com','dataSource':'https://bff.latam.com','bagCardHomesEnabled':'es\_ec, es\_co','plusgradeApiKey':'KJkRYY2KaKbnDTPlBnAM08H9','enabledDomains':'.\*','defaultProtocol':'http','theme':''};\</script\> 11:10:08.099 11:10:08.099 11:10:08.099 11:10:08.099 \<script type="text/javascript" src="https://s.latamstatic.com/js/libs/external/require/2.1.8/require.js"\>\</script\> 11:10:08.099 \<script type="text/javascript" src="https://s.latamstatic.com/js/libs/lan/utils/requireConfig/2.1/requireConfig.min.js"\>\</script\> 11:10:08.099 11:10:08.099 \<script type="text/javascript" src="https://s.latamstatic.com/apps/mybookings/2.2.1/dist/js/mybookings.config.js"\>\</script\> 11:10:08.099 11:10:08.099 11:10:08.099 \<script type="text/javascript" async src="https://s.latamstatic.com/apps/mybookings/2.2.1/dist/js/mybookings.js"\>\</script\> 11:10:08.099 11:10:08.099 \</div\> 11:10:08.099 \</div\> 11:10:08.099 \<div class="hyf-mu-footer"\> 11:10:08.099 \<style id="styleFooterLatam"\>.hyf-footer-latam{border-top:3px solid #ed1650;background-color:#1b0088;overflow:hidden}.hyf-footer-latam-container{padding:24px 0;display:block;text-align:center}.hyf-footer-latam-container p{font-size:1.0em;line-height:120%;vertical-align:middle;color:#bfbfbf;margin:0}.hyf-footer-latam-copyright{overflow:hidden;text-align:center}.hyf-footer-latam-logo{display:block;text-align:center}.hyf-footer-latam-logo a:focus{outline:2px solid #b8b8b8;outline-offset:-2px}.hyf-footer-latam-16{height:16px;display:block}.hyf-col-f25{width:100%}.hyf-col-f75{width:100%}@media (min-width:768px){.hyf-footer-latam-logo{text-align:right}.hyf-footer-latam-copyright{text-align:left}.hyf-footer-latam-container p{float:left}.hyf-footer-latam-container{padding:20px 0}.hyf-col-f25{width:auto}.hyf-col-f75{width:auto}.hyf-footer-latam-16{height:0}}@media only screen and (min-width:992px){.hyf-footer-latam-16{height:0}}@media only screen and (min-width:1200px){.hyf-footer-latam-16{height:7px}}\</style\> 11:10:08.099 \<footer id="appFooterLatam" role="contentinfo" class="hyf-footer-latam" style="display:none"\> 11:10:08.099 \<div class="hyf-container hyf-footer-latam-container"\> 11:10:08.099 \<div class="footer-latam-copyright hyf-goleft hyf-col-f75"\> 11:10:08.099 \<div class="hyf-hidden-sm hyf-hidden-md hyf-visible-xs hyf-visible-lg hyf-footer-latam-16"\>\<br\>\</div\> 11:10:08.099 \<p\>&copy; 2018 LATAM Airlines Brasil\</p\> 11:10:08.099 \<p class="hyf-hidden-sm hyf-hidden-md hyf-hidden-lg hyf-visible-xs"\>staticFooter.latam.copyright2\</p\> 11:10:08.099 \<div class="hyf-hidden-lg hyf-hidden-xs hyf-visible-sm hyf-visible-md"\>\<br\>\</div\> 11:10:08.099 \<p class="hyf-hidden-xs hyf-visible-sm hyf-visible-md hyf-visible-lg"\> 11:10:08.099 11:10:08.099 \<span class="hyf-hidden-xs hyf-hidden-sm hyf-hidden-md hyf-visible-lg" style="color:#ed1650"\>-\</span\> Rua Verbo Divino n&ordm; 2001, andares 3&ordm; ao 6&ordm; Ch&aacute;cara Santo Ant&ocirc;nio, CEP 04.719-002 S&atilde;o Paulo/SP 11:10:08.099 11:10:08.099 11:10:08.099 \<span style="color:#ed1650"\>-\</span\> CNPJ: 02.012.862/0001-60 11:10:08.099 11:10:08.099 \</p\> 11:10:08.099 \</div\> 11:10:08.099 \<div class="hyf-footer-latam-logo hyf-goright hyf-col-f25"\> 11:10:08.099 \<a href="#" target="target" title="titulo"\> 11:10:08.099 \<img src="https://s.latamstatic.com/css/img/logos/LATAM\_Logo\_Footer.svg" alt="alt" height="36px"/\> 11:10:08.099 \</a\> 11:10:08.099 \</div\> 11:10:08.099 \</div\> 11:10:08.099 \</footer\> 11:10:08.099 11:10:08.099 11:10:08.099 \<script type="text/javascript" async src="https://s.latamstatic.com/js/libs/lan/commons/commonsFunc/1.0.0/headerFuncs.min.js"\>\</script\> 11:10:08.099 11:10:08.099 \<script type="text/javascript" async src="https://s.latamstatic.com/js/libs/lan/commons/commonsFunc/1.0.0/accessibilityFuncs.min.js"\>\</script\> 11:10:08.099 11:10:08.099 11:10:08.099 \<script type="text/javascript"\>(function(){function footer(){this.homesMultiplus=[];this.appsMultiplus=[];};footer.prototype={cleanSelector:function(selector){selector.forEach(function(select){document.querySelector(select).removeAttribute("style");});},removeStyles:function(selectors){selectors.forEach(function(select){document.querySelector(select).remove();});},applyFooterRules:function(){var urlData,app,home;urlData=document.location.pathname;urlData=urlData.split("/");app=urlData[4];home=urlData[1];this.cleanSelector(["#appFooterLatam"])}};var footer=new footer();footer.applyFooterRules();})();\</script\> 11:10:08.099 11:10:08.099 \</div\> 11:10:08.099 \</div\> 11:10:08.099 \<script type="text/javascript"\>var menuUp=false;var hideVar=null;function skipToMainContent(e){var k=(document.all)?e.keyCode:e.which;if(k===13){document.getElementById('appMain').focus();return false;}}function hyfShowMenu(){var e=document.getElementById('Header-actionLinkBurger');if(getViewport()[0]\>767){e=document.getElementById('showMenu');e.style.display='none';e=document.getElementById('hideMenu');e.style.display='inline';e.focus();}else{setMobileview();e.href="javascript:hyfHideMenu();" 11:10:08.099 e=document.getElementsByClassName('hyf-modal-black')[0];e.style.display="block";}e=document.getElementById('hyf-country-selector');e.style.display='inline';menuUp=true;}function setMobileview(){var e=document.getElementsByTagName('body')[0];e.className='hyf-mobile-view';e=document.getElementById('hyf-country-selector');var alto=getViewport()[1].toString();e.style.maxHeight=alto+'px';e.style.overflow='scroll';e.style.overflowX='hidden';e.style.overflowY='auto';hyfHideCs();}function unsetMobileview(){var e=document.getElementsByTagName('body')[0];e.removeAttribute('class');e=document.getElementById('hyf-country-selector');e.style.maxHeight='';e.style.overflow='hidden';e.style.overflowY='auto';hyfShowCs();e=document.getElementById('hyf-cs-first');e.style.display='none';}function hyfHideMenu(){var e=document.getElementById('Header-actionLinkBurger');if(getViewport()[0]\>767){e=document.getElementById('showMenu');e.style.display='inline';e=document.getElementById('hideMenu');e.style.display='none';}else{e=document.getElementById('showMenu');e.style.display='none';e=document.getElementById('hideMenu');e.style.display='none';e=document.getElementsByClassName('hyf-modal-black')[0];e.style.display="none";unsetMobileview();e=document.getElementById('Header-actionLinkBurger');e.href="javascript:hyfShowMenu();"}e=document.getElementById('hyf-country-selector');e.style.display='none';menuUp=false;}function hyfgoHideMenu(){if(!menuUp){if(document.getElementById('hyf-country-selector').style.display!="none")hyfHideMenu();}}function hyfHideCs(){var e=document.getElementById('hyf-cs');e.href="javascript:hyfShowCs();";e=document.getElementsByClassName('hyf-cs');for(var i=0;i\<e.length;i++)e[i].style.display='none';}function hyfShowCs(){var e=document.getElementById('hyf-cs');e.href="javascript:hyfHideCs();";e=document.getElementsByClassName('hyf-cs');for(var i=0;i\<e.length;i++)e[i].style.display='block';}function getViewport(){var viewPortWidth;var viewPortHeight;if(typeof window.innerWidth!='undefined'){viewPortWidth=window.innerWidth,viewPortHeight=window.innerHeight}else{viewPortWidth=document.getElementsByTagName('body')[0].clientWidth,viewPortHeight=document.getElementsByTagName('body')[0].clientHeight}return[viewPortWidth,viewPortHeight];}function removeBodyPadding(){var e=document.getElementsByTagName('body')[0];e.removeAttribute("style");e=document.getElementById('hyf-country-selector');e.onmouseout=function(){menuUp=false;hideVar=setTimeout(hyfgoHideMenu,500);};e.onmouseover=function(){menuUp=true;hideVar=null;};e.onfocus=function(){this.style.display="none";e=document.getElementById('hideMenu');e.style.display='inline';};window.onresize=function(){hyfHideMenu();return true;} 11:10:08.099 e=document.getElementsByClassName('Header-logoLink');for(var i=0;i\<e.length;i++)e[i].onfocus=function(){hyfHideMenu();this.focus()};e=document.getElementById('returnLink');e.onfocus=function(){hyfHideMenu()} 11:10:08.099 e=document.getElementsByClassName('hyf-country-ul');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('hyf-modal-black')[0];e.onmouseover=function(){hyfHideMenu();} 11:10:08.099 e=document.getElementsByClassName('hyf-not-underline');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('lt-icon-flag');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('hyf-flag-centrado');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('hyf-country-selector-title');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('hyf-login-info');e[0].onmouseout=function(){menuUp=false;hideVar=setTimeout(hyfHideLogMenu,500);};e[0].onmouseover=function(){menuUp=true;hideVar=null;};e=document.getElementsByClassName('hyf-login-info-a');for(i=0;i\<e.length;i++){e[i].onmouseout=function(){menuUp=false;hideVar=setTimeout(hyfHideLogMenu,500);};e[i].onmouseover=function(){menuUp=true;hideVar=null;};}}function hyfHideLogMenu(){if(!menuUp){var e=document.getElementsByClassName('hyf-login-info');e[0].style.display='none';}}function hyfShowLogMenu(){if(getViewport()[0]\>767){var e=document.getElementsByClassName('hyf-login-info');e[0].style.display='block';}}function ShowLoginMenu(){var e=document.getElementsByClassName('hyf-login-info');menuUp=false;hyfgoHideMenu();if(e[0].style.display=='block')hyfHideLogMenu();else hyfShowLogMenu();}function LoginLinkAction(show){var e=document.getElementById('loginLatamBox');if(show){e.style.display="inline-table";e.style.padding="8px 4px" 11:10:08.099 var e=document.getElementsByClassName('hyf-header-element');for(i=0;i\<e.length;i++)e[i].style.top='0';}else{e.style.display="none";e.style.padding="0" 11:10:08.099 var e=document.getElementsByClassName('hyf-header-element');for(i=0;i\<e.length;i++)e[i].style.top='6px';}}function UserLoginAction(show){var e=document.getElementById('userLatamBox');if(show){e.style.display="inline-table";var e=document.getElementsByClassName('hyf-header-element');for(i=0;i\<e.length;i++)e[i].style.top='0';}else{e.style.display="none";var e=document.getElementsByClassName('hyf-header-element');for(i=0;i\<e.length;i++)e[i].style.top='6px';}}\</script\> 11:10:08.099 \</body\> 11:10:08.099 \</html\>

/Edit: Ok, error is your anchor-point: #reservas

Leave that out and it works with both GET and POST

Good catch!

My project is just this code so far, I’ve literally done nothing else, config.lua is the default that already comes, the main.lua is this code with the network.request hahahaha

@CoronaChris

Thankss !! But, I discovered that without #Reservas does not work!

The #reserves that makes me redirect directly to the reserve page purchased, if I do not use it the corona redirects only to the site to put the information … Does anyone have any suggestions?

Other information as well. If I use the POST method without the reservations I believe it would work, but I have a problem with it. If I get a same link, and put the POST method and update the corona several times, the return changes practically every time, ie, the same link is returning me different codes … I think it’s because network.request is not expecting the page to load completely (because after you enter the page of a reservation already purchased, it loads a bit of JS code and then shows me all the information, I do not think the network .request is waiting for the JS to load … Anyone in any solution?

edit: 

To put it simply: The POST method is not delivering the two variables at the following link: https://www.latam.com/pt_br/apps/personas/mybookings? the variables that would be “reserve” and “last name” (recordLocator and lastName)

Correcting:

The POST method delivers the variable but only when it wants, it’s as if it tries to deliver before the site is ready to receive, I can not explain very well what’s happening, but it’s simply this, if I keep refreshing the simulator, some Sometimes it can return me a valid link and most of the time it returns invalid.

In your end-user case, how often can the user request that URL? I’m pretty sure the service isn’t expecting the same user to hit the URL over and over repeatedly. 

We have a saying around here, “Help us help you”. The reason we ask for a .zip file is it takes time to try and reproduce the files. You have them handy. It’s way faster for you to make a .zip file than it is for us to create a project for you and drop your code into it.

Rob

@Rob

Well, it’s like I said at the beginning of the topic, I have a spreadsheet with more than 2000 reservations and last names to be defined as “valid” or “invalid”. so I would have to test those 2000 combinations at once (I would not mind if it took 1 hour or more, I just need those combinations tested)

I WOULD LIKE to be able to make a valid reservation and surname valid for you to test, but the privacy policy prevents me from doing this, because even when you have a valid reservation, you could change the tickets, the data and even make a purchase for people, then this data is quite restricted, so I always try to post as much detail here.

But did you get the idea? It is a spreadsheet of more than 2000 reservation codes and last name, and I have to simply say if that code is still valid or not. (All bookings were already valid one day, so I have to “update” the company database by verifying this)

Note:

My final intention, after making sure that the network.request is actually returning a true result, is to do a compile for windows with a two text box so that I can personally insert all the backup codes and all the last names at once , then I will store in two arrays and do the verification. But what I am having problems is actually the network.request

 

Link of the project I’m using > http://www.mediafire.com/file/26m92c78l692b8u/PlanilhaBabi.rar/file

You can ask any kind of thing! If I need prints, I’ll give them too.

Have you spoken to someone from LATAM about this? Are they going to be okay with you scraping their reservation site?

The file you posted seems to be based on POST and doesn’t appear to be returning anything.

Rob

most, if not all, endpoints will throttle on IP.  so if you are server requesting this info then well then you’ve got firewall issues.

But it’s because it’s not making sense to me. Rob, it’s POST but I tried GET too with #reservations and GET does not work, and if I get and put the same link in my browser I can get the HTML so I think it’s not too complex, doing it the wrong way, right?

If you can access a page with the key-value pairs being part of the URL, that should be a GET based script. The # starts a fragment identifier which is typically a client-side feature that can be used as an in-page anchor, fed to JavaScript for further processing on the client side or used by analytics tools that look at the whole URL and use key-value pairs after the # to indicate where the URL was clicked on. Let’s look at each of these:

as an anchor: There must be an anchor tag on the page like <a href="#sectiontojumpto"> in the page. The browser will use the text after the # and jump to that part of the page. Likewise someone could click on a URL in the page and also jump there. I doubt this is what LATAM is doing.

as additional information to JavaScript: In this case, JavaScript reads the part after the # and processes the key-value pairs which could lead to additional content being brought in by an AJAX style call. I suspect that this is what LATAM is doing.

for analytics. Some people will put tags after the # to identify the place where the URL is used. Lets say you want to share a news story to the web. You might do:

https://somenewssite.com/path-to-article.html#source=twitter

https://somenewssite.com/path-to-article.html#source=facebook

https://somenewssite.com/path-to-article.html#source=newsletter

https://somenewssite.com/path-to-article.html#source=website

Then using various tools that can analyze logs can now count how many hits to the article came from Twitter, from Facebook, etc. I doubt this is what LATAM is using…

Since I suspect the page is using page fragments in the 2nd form, the HTML would need to be downloaded to the browser which will execute JavaScript that is bringing additional content into the page. Corona’s network.request() will not execute the in-page javascript which means any content injected into the page simply won’t work. It just fetches the raw HTML for the primary request. 

You can see: https://stackoverflow.com/questions/7909969/what-is-the-symbol-in-the-url for more information about the use of the # mark.

I think the answer, which you’re probably not going to like is you’re not going to be able to do this with network.request(). There may be some weird hack-around using native.newWebView() (which won’t be very performant, if you can get it to work at all). I also suspect that LATAM doesn’t want you doing this in the first place. They, however, may have an API that other travel services can access to get information about a given reservation and would prefer you to access their reservation system in a manner they designed for that.

Rob 

First of all I would like to thank you for the complete response @Rob.

It makes sense in my head now, I understand that Latam protected herself against it, and even if it’s just you speculating, it made sense in my head.

So what I really have left is to use mouse macro to be able to copy the values ​​from the spreadsheet to the site values ​​of the latam (zZZZZzzzZz).

This takes hours, so I said I would not mind if the network.request took more than 1 hour.

Maybe loading in webView and using find is not a bad option, but I think it should take a little good … Yeah, I do not think there’s going to be a way :frowning:

Thanks again for the incredible help :wink:

someone can help?

I dug into this to see if there were some weird redirects going on. Perhaps if you put together a simple test app that includes a config.lua and build.settings in a .zip file and share it with us we can take a look at it running in the simulator and/or on a test device and see if we can see something. 

Rob

Use POST-method instead:

local function networkListener( event ) if ( event.isError ) then print( "Network error: ", event.response ) else local ans = event.response print ( event.response ) print(" ") print(" ") print( string.find( ans, "data-dtconfig", 1) ) end end local url = "https://www.latam.com/pt\_br/apps/personas/mybookings?" local params = {} params.body = "recordLocator=zzzzz&lastName=SILVA" network.request(url, "POST", networkListener, params ) 

This returns the following:

11:10:08.098 \<!DOCTYPE html\> 11:10:08.098 \<html lang="pt"\> 11:10:08.098 \<head\> 11:10:08.098 \<meta http-equiv="Content-Type" content="text/html; charset=utf-8"\> 11:10:08.098 \<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"\> 11:10:08.098 \<title\>Minhas Viagens | Todas as informa&ccedil;&otilde;es sobre as suas viagens | LATAM Linhas A&eacute;reas Brasil\</title\> 11:10:08.098 \<meta name="viewport" content="width=device-width, initial-scale=1.0"\> 11:10:08.098 \<script type="text/javascript" src="/dtagent\_ICA23bpqrx\_6000500091501.js" data-dtconfig="rid=RID\_-2061999971|rpid=-1269469780|domain=latam.com|bandwidth=300|tp=500,50,0,1|reportUrl=dynaTraceMonitor|agentUri=/dtagent\_ICA23bpqrx\_6000500091501.js"\>\</script\>\<link rel="shortcut icon" type="image/x-icon" href="https://s.latamstatic.com/static/latam/images/favicon/LATAM/favicon.ico"\> 11:10:08.098 11:10:08.098 \<meta name="layout" content="personas\_bs3\_latam\_mu"/\> 11:10:08.098 11:10:08.098 \<meta content="Verifique e administre todas as informa&ccedil;&otilde;es sobre os seus voos e servi&ccedil;os dispon&iacute;veis para aproveitar suas viagens com a LATAM Airlines." name="description"\> 11:10:08.098 \<meta content="LAN.com" name="keywords"\> 11:10:08.098 11:10:08.098 \<meta scheme="tracker" name="sessionId" content="C1B61344A40E868DB04AB5541EA2CB46"/\> 11:10:08.098 \<meta scheme="tracker" name="matchedScenario" content="latam"/\> 11:10:08.098 \<meta scheme="tracker" name="template" content="personas\_bs3\_latam\_mu"/\> 11:10:08.098 \<meta scheme="tracker" name="userDataCookieRawData" content="null"/\> 11:10:08.098 \<meta scheme="tracker" name="appVersion" content="3.0.36"/\> 11:10:08.098 11:10:08.098 11:10:08.098 \<link rel="stylesheet" href="https://s.latamstatic.com/layout/ui/3/css/bootstrap.min.css" type="text/css"\> 11:10:08.098 \<link rel="stylesheet" href="https://s.latamstatic.com/layout/ui/3/css/global.min.css" type="text/css"\> 11:10:08.098 \<link rel="stylesheet" href="https://s.latamstatic.com/layout/ui/3/css/latam-mu.min.css" type="text/css"\> 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 \<script type="text/javascript" src="https://s.latamstatic.com/js/libs/external/modernizr/2.6.2/modernizr.custom.js"\>\</script\> 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 \<!--[if lt IE 9]\> 11:10:08.098 \<script src="/js/libs/external/compatibility/shiv/3.7.0/html5shiv.js"\>\</script\> 11:10:08.098 \<![endif]--\> 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 \<!--[if lt IE 9]\> 11:10:08.098 \<script src="/js/libs/external/respond/1.4.2/respond.min.js"\>\</script\> 11:10:08.098 \<![endif]--\> 11:10:08.098 11:10:08.098 11:10:08.098 11:10:08.098 \</head\> 11:10:08.098 \<body onload="removeBodyPadding();"\> 11:10:08.098 \<div class="hyf-modal-black"\>\</div\> 11:10:08.098 \<div class="hyf-mu-wrapper"\> 11:10:08.098 11:10:08.098 \<noscript\>\<iframe src="//www.googletagmanager.com/ns.html?id=GTM-RPVH" height="0" width="0" style="display: none; visibility: hidden"\>\</iframe\>\</noscript\>\<script type="text/javascript"\>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-RPVH');\</script\> 11:10:08.098 11:10:08.098 11:10:08.098 \<style id="styleHeaderLatam"\> 11:10:08.098 /\* style fixes \*/ 11:10:08.098 html {margin:0;padding:0;min-height:100%;position:relative} 11:10:08.098 body {margin:0;padding:0;} 11:10:08.098 a \> [class^="icon-"], a \> [class\*="icon-"] { 11:10:08.098 margin: 5px 22px 0 0; 11:10:08.098 } 11:10:08.098 .hyf-modal-black{display:none;opacity: 1;background-color: rgba(0,0,0,0.8);position: fixed;top: 0;left: 0;right: 0;bottom: 0;margin: 0;z-index: 99999999998;-webkit-transition: all 1s;-moz-transition: all 1s;transition: all 1s;} 11:10:08.098 .hyf-not-underline {text-decoration: none} 11:10:08.098 .hyf-icon-clear{float:none;margin:0} 11:10:08.098 /\* style fixes \*/ 11:10:08.098 11:10:08.098 .hyf-mobile-view {height:100%;overflow:hidden} 11:10:08.098 .hyf\_mu\_wrapper,.hyf\_mu\_header,.hyf-mu-content,.hyf-mu-footer {padding:0;margin:0;} 11:10:08.098 .hyf\_mu\_wrapper {min-height:100%;position:relative;} 11:10:08.098 .hyf-mu-header {position:relative;} 11:10:08.098 @media(min-width: 768px){ .hyf-mu-header {position: fixed;top: 0;width: 100%;z-index: 100;} #appMain {margin-top: 36px;} } 11:10:08.098 .hyf-mu-header-container {height:36px;background-color:#1B0088;position:relative;font-family: 'Latam-Sans-Regular'} 11:10:08.098 .hyf-mu-content {} 11:10:08.098 .hyf-mu-footer {background:#1B0088;width:100%;position:absolute;bottom:0;left:0;} 11:10:08.098 11:10:08.098 .hyf-goleft {position:relative;float:left;} 11:10:08.098 .hyf-alleft {text-align: left} 11:10:08.098 .hyf-goright {position:relative;float:right;} 11:10:08.098 .hyf-alright {text-align: right} 11:10:08.098 .hyf-container{max-width:960px;margin:0 auto;position:relative;} 11:10:08.098 .hyf-goup {text-transform:uppercase;} 11:10:08.098 .hyf-col-25 {width:25%;float:left;} 11:10:08.098 .hyf-col-100 {width:100%;float:left;} 11:10:08.098 11:10:08.098 /\* Objetos \*/ 11:10:08.098 .hyf-header-section{height:36px;font-size:1em;} 11:10:08.098 .hyf-header-section .hyf-header-element{vertical-align: middle;padding:8px 0px;text-decoration: none;color:#b8b8b8;margin: 0px 5px;border: none;top:6px;position: relative;} 11:10:08.098 .hyf-contry-ul li a:focus {outline:#1B0088 auto 2px;} 11:10:08.098 .hyf-header-section .hyf-header-element span {padding-top: 5px;margin:0;color:#ffffff} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-goup.hyf-pais-show:hover {background-color:#f3f3f3;color:#1B0088} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-goup.hyf-pais-hide {background-color:rgb(243,243,243);background-color:rgba(243,243,243,97);color:#1B0088;} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-goup.hyf-pais-hide:focus {border:none;} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {display:none;text-align: left;text-decoration:none;font-size:14px;font-family: 'Latam-Sans-Regular', arial, sans-serif;border:0;color:#fff;padding:0 0 0 40px;} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login span{color:#fff;text-decoration: none} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login span:hover{text-decoration: none} 11:10:08.098 .hyf-header-section .hyf-header-element a.hyf-login:hover {background-color:#ed1650;text-decoration:none} 11:10:08.098 .hyf-login-info {position:absolute;;background-color:#fff;padding: 10px 25px 20px 25px;border-bottom-left-radius: 5px;width:100%;border-bottom-right-radius: 5px;border-top-left-radius: 0;border-top-right-radius: 0;border: 1px solid #bfbfbf;color:#666666;z-index:2;display:none} 11:10:08.098 .hyf-login-info a {display:block;margin:6px 0;color:#666666;text-decoration: none;font-family: 'Latam-Sans-Bold'} 11:10:08.098 .hyf-login-info a:hover {text-decoration: underline} 11:10:08.098 .hyf-login-info a:last-child {text-align: right;margin-top: 15px;margin-bottom: 0px;border-top: 2px solid #b30f3b;padding-top: 10px;} 11:10:08.098 .hyf-login-link {color:white;text-decoration: none} 11:10:08.098 .hyf-login-text {max-width:223px;overflow:hidden;text-overflow:ellipsis;white-space: nowrap} 11:10:08.098 #hyf-icon-log-icon,#hyf-icon-log-iconi {margin: -5px -28px -13px -45px;color: #fff;} 11:10:08.098 #hyf-icon-log-caret {float:right;margin:10px 5px;color:#fff} 11:10:08.098 11:10:08.098 .hyf-country-selector {position:absolute;overflow: hidden;border:1px solid #f3f3f3; 11:10:08.098 border-radius: 0 0 1px 1px;padding:10px 15px;color:#666666;text-align: left;z-index: 99999999999;max-width:930px;box-sizing: border-box; 11:10:08.098 -webkit-box-shadow: 0 1px 1.68px 1.32px rgba(0,2,0,0.5); 11:10:08.098 -moz-box-shadow: 0 1px 1.68px 1.32px rgba(0,2,0,0.5); 11:10:08.098 box-shadow: 0 1px 1.68px 1.32px rgba(0,2,0,0.5); 11:10:08.098 } 11:10:08.098 .hyf-country-selector ul {list-style:none;margin:0;padding:0} 11:10:08.098 .hyf-country-selector ul li{list-style:none;margin:0 0 10px 0;padding:0;font-size:1em;} 11:10:08.098 .hyf-country-selector .hyf-country-selector-title {font-size:1em;font-family:'Latam-Sans-Bold';margin-top:10px;margin-bottom: 11px} 11:10:08.098 .hyf-logo {padding:0;height:70px;line-height:80px;margin-top:20px;margin-bottom: 20px;position:relative;} 11:10:08.098 .hyf-logo a{position:relative;margin-right:42px} 11:10:08.098 .hyf-header-section .hyf-header-element.Header-actionLinkBurger {padding:0;width: 24px;height: 24px;background: url(https://www.latam.com/static/latam/images/content-image/header/icn-burger.svg) no-repeat center center;} 11:10:08.098 .hyf-header-section .hyf-header-element.Header-userLink{padding:0;width: 24px;height: 24px;float: none;top: 0px;right: 20px;} 11:10:08.098 /\*\* focos \*\*/ 11:10:08.098 .hyf-only-focusable {position: absolute;width: 1px;height: 1px;padding: 0; margin: -1px;overflow: hidden;clip: rect(0,0,0,0);border: 0;} 11:10:08.098 .hyf-only-focusable:focus {position:relative;width:auto;height: auto;overflow:hidden;clip: auto;display:inline-block;background-color:#fff; color: #1B0088;margin:5px;outline: 2px solid #1B0088;outline-offset:0px;} 11:10:08.098 .text-skip-to-main-content{margin:0;} 11:10:08.098 .hyf-header-section .hyf-header-element:focus{outline:2px solid #b8b8b8;outline-offset:0px;} 11:10:08.098 .hyf-logo a:focus {outline:2px solid #1B0088;} 11:10:08.098 .hyf-logoLink {position:absolute;top:5px;left:5px;} 11:10:08.098 .hyf-logoLink:focus {outline:2px solid #b8b8b8;outline-offset:0} 11:10:08.098 .hyf-logoOneWorldLink {position:absolute;top:5px;left:100px;} 11:10:08.098 .hyf-logoOneWorldLink:focus {outline:2px solid #b8b8b8;outline-offset:0} 11:10:08.098 #mobileHeader {background-color:#1B0088;border-bottom-color: #b8b8b8;font-family: 'Latam-Sans-Regular';color:#fff;font-size:14px;height:50px;padding-top:10px;position:relative;} 11:10:08.098 #mobileTitle {font-size: 25px;font-weight: 700;margin:0;text-align: center;color:#fff} 11:10:08.098 .hyf-returnLink {float:left;} 11:10:08.098 #hyf-returnLink:focus {outline:2px solid #b8b8b8;outline-offset:0} 11:10:08.098 .hyf-cs-div {background-color:white;position:absolute;height:80px;top:0;left:0px;width:100%;padding:10px;overflow:hidden;} 11:10:08.098 .hyf-cs-div a {width:100%;display:block;margin:10px 5px;text-decoration: none;color:#666666} 11:10:08.098 .hyf-cs-margin {position:relative;height:60px} 11:10:08.098 #hideMenu,#hyf-country-selector{display: none;} 11:10:08.098 a.hyf-login-link {outline: none;text-decoration: none} 11:10:08.098 11:10:08.098 /\* BANDERAS \*/ 11:10:08.098 .lt-icon-flag {background-image: url(https://www.latam.com/static/latam/images/design-image/sprites/icon-sprite.png);float:left;margin:5px 22px 0 0;} 11:10:08.098 11:10:08.098 .lt-icon-ar-small { background-position: -85px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-ar { background-position: 0px -100px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-au-small { background-position: -51px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-au { background-position: -30px -20px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-br-small { background-position: -17px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-br { background-position: -30px -40px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-ca-small { background-position: -120px -99px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-ca { background-position: -60px -20px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-cl-small { background-position: -120px -77px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-cl { background-position: 0px -60px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-co-small { background-position: -30px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-co { background-position: -60px -60px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-de-small { background-position: -120px -33px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-de { background-position: -90px -20px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-ec-small { background-position: -120px -11px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-ec { background-position: -90px -60px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-es-small { background-position: -98px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-es { background-position: -30px -80px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-eu-small { background-position: -64px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-eu { background-position: -90px -80px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-fr-small { background-position: -47px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-fr { background-position: 0px 0px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-it-small { background-position: -120px -55px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-it { background-position: -60px -80px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-mx-small { background-position: -81px -100px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-mx { background-position: 0px -80px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-nz-small { background-position: -120px 0px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-nz { background-position: -90px -40px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-otros\_paises-small { background-position: -120px -22px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-otros\_paises { background-position: -90px 0px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-pe-small { background-position: -120px -44px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-pe { background-position: -30px -60px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-pr-small { background-position: -120px -66px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-pr { background-position: -60px -40px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-sa-small { background-position: -120px -88px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-sa { background-position: -60px 0px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-ue-small { background-position: 0px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-ue { background-position: 0px -40px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-uk-small { background-position: -34px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-uk { background-position: 0px -20px; width: 30px; height: 20px;} 11:10:08.098 .lt-icon-uy-small { background-position: -68px -120px; width: 17px; height: 11px;} 11:10:08.098 .lt-icon-uy { background-position: -30px 0px; width: 30px; height: 20px;} 11:10:08.098 11:10:08.098 /\*clases para ocultar\*/ 11:10:08.098 11:10:08.098 /\* Custom, iPhone Retina \*/ 11:10:08.098 @media only screen and (max-width : 319px){ 11:10:08.098 .hyf-visible-xs{display: inline;} .hyf-hidden-xs{display: none;} .hyf-visibleb-xs{display: block;} .hyf-visibleib-xs{display:inline-block;} 11:10:08.098 .hyf-col-25 {width:100%;} .hyf-flag-centrado {display:block;padding-top: 6px} 11:10:08.098 .hyf-mu-content {padding-bottom:135px;} 11:10:08.098 .hyf-mu-footer {height:135px;} 11:10:08.098 .hyf-contry-ul li a {display:inline;} 11:10:08.098 .hyf-country-selector{margin-top: -36px;width:85%;right:0px;background-color:#e5e5e5;} 11:10:08.098 #hyf-icon-log-caret {display:none} 11:10:08.098 #hyf-icon-log-iconi {display: block} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#b30f3b} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: transparent} 11:10:08.098 } 11:10:08.098 @media only screen and (min-width : 320px){ 11:10:08.098 .hyf-visible-xs{display: inline;} .hyf-hidden-xs{display: none;}.hyf-visibleb-xs{display: block;} .hyf-visibleib-xs{display:inline-block;} 11:10:08.098 .hyf-col-25 {width:100%;} .hyf-flag-centrado {display:block;padding-top: 6px} 11:10:08.098 .hyf-mu-content {padding-bottom:135px;} 11:10:08.098 .hyf-mu-footer {height:135px;} 11:10:08.098 .hyf-contry-ul li a {display:inline;} 11:10:08.098 .hyf-country-selector{margin-top: -36px;width:85%;right:0px;background-color:#e5e5e5;} 11:10:08.098 #hyf-icon-log-caret {display:none} 11:10:08.098 #hyf-icon-log-iconi {display: block} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#b30f3b} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: transparent} 11:10:08.098 } 11:10:08.098 /\* Extra Small Devices, Phones \*/ 11:10:08.098 @media only screen and (min-width : 480px){ 11:10:08.098 .hyf-visible-xs{display: inline;} .hyf-hidden-xs{display: none;} .hyf-visibleb-xs{display: block;} .hyf-visibleib-xs{display:inline-block;} 11:10:08.098 .hyf-col-25 {width:100%;} .hyf-flag-centrado {display:block;padding-top: 6px} 11:10:08.098 .hyf-mu-content {padding-bottom:135px;} 11:10:08.098 .hyf-mu-footer {height:135px;} 11:10:08.098 .hyf-contry-ul li a {display:inline;} 11:10:08.098 .hyf-country-selector{margin-top: -36px;width:85%;right:0px;background-color:#e5e5e5;} 11:10:08.098 #hyf-icon-log-caret {display:none} 11:10:08.098 #hyf-icon-log-iconi {display: block} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#b30f3b} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: transparent} 11:10:08.098 } 11:10:08.098 /\* Small Devices, Tablets \*/ 11:10:08.098 @media only screen and (min-width : 768px){ 11:10:08.098 .hyf-visible-sm{display: inline;} .hyf-hidden-sm{display: none;} .hyf-visibleb-sm{display: block;} 11:10:08.098 .hyf-col-25 {width:25%;} .hyf-flag-centrado {display:inline;padding:0;} 11:10:08.098 .hyf-mu-content {padding-bottom:76px;} 11:10:08.098 .hyf-mu-footer {height:76px;} 11:10:08.098 .hyf-contry-ul li a {display:inline-block;} 11:10:08.098 #hyf-icon-log-caret {display:inline-table} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#fff} 11:10:08.098 #hyf-icon-log-iconi {display: none} 11:10:08.098 .hyf-country-selector{margin-top:0px;width:100%;background-color:rgb(243,243,243);background-color:rgba(243,243,243,97);} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: #b30f3b} 11:10:08.098 } 11:10:08.098 /\* Medium Devices, Desktops \*/ 11:10:08.098 @media only screen and (min-width : 992px){ 11:10:08.098 .hyf-visible-md{display: inline;} .hyf-hidden-md{display: none;} .hyf-visibleb-md{display: block;} 11:10:08.098 .hyf-col-25 {width:25%;} .hyf-flag-centrado {display:inline;padding:0;} 11:10:08.098 .hyf-mu-content {padding-bottom:76px;} 11:10:08.098 .hyf-mu-footer {height:76px;} 11:10:08.098 .hyf-contry-ul li a {display:inline-block;} 11:10:08.098 #hyf-icon-log-caret {display:inline-table} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#fff} 11:10:08.098 .hyf-country-selector{margin-top:0px;width:100%;background-color:rgb(243,243,243);background-color:rgba(243,243,243,97);} 11:10:08.098 #hyf-icon-log-iconi {display: none} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: #b30f3b} 11:10:08.098 } 11:10:08.098 /\* Large Devices, Wide Screens \*/ 11:10:08.098 @media only screen and (min-width : 1200px){ 11:10:08.098 .hyf-visible-lg{display: inline;} .hyf-hidden-lg{display: none;} .hyf-visibleb-md{display: block;} 11:10:08.098 .hyf-col-25 {width:25%;} .hyf-flag-centrado {display:inline;padding:0;} 11:10:08.098 .hyf-mu-content {padding-bottom:76px;} 11:10:08.098 .hyf-mu-footer {height:76px;} 11:10:08.098 .hyf-contry-ul li a {display:inline-block;} 11:10:08.098 #hyf-icon-log-caret {display:inline-table} 11:10:08.098 #hyf-icon-log-icon.isLoggedIn {color:#fff} 11:10:08.098 #hyf-icon-log-iconi {display: none} 11:10:08.098 .hyf-country-selector{margin-top:0px;width:100%;background-color:rgb(243,243,243);background-color:rgba(243,243,243,97);} 11:10:08.098 .hyf-header-section .hyf-header-element.hyf-login {background-color: #b30f3b} 11:10:08.098 } 11:10:08.098 \</style\> 11:10:08.098 11:10:08.098 \<div class="hyf-mu-header" id="hyfLatam" role="banner" style="display:none"\> 11:10:08.098 \<div class="hyf-container" role="application"\> 11:10:08.098 \<a class="hyf-only-focusable" onkeydown="skipToMainContent(event);" href="#appMain" title="Ir para o conte&amp;uacute;do principal"\> 11:10:08.098 \<span class="text-skip-to-main-content"\>Ir para o conte&amp;uacute;do principal\</span\> 11:10:08.098 \</a\> 11:10:08.098 \</div\> 11:10:08.098 \<nav class="hyf-mu-header-container" role="navigation"\> 11:10:08.098 \<section class="hyf-container hyf-header-section"\> 11:10:08.098 \<div class="hyf-goleft"\> 11:10:08.098 \<a class="hyf-header-element hyf-hidden-xs hyf-visible-sm hyf-visible-md hyf-visible-lg" href="https://www.latam.com"\>\<img src="https://s.latamstatic.com/static/latam/images/content-image/header/latam-logo-sticky.svg" alt="LATAM Logo" class="Header-logoImg" width="110px" height="25px"\> 11:10:08.098 \</a\> 11:10:08.098 \<a class="hyf-header-element hyf-visible-xs hyf-hidden-sm hyf-hidden-md hyf-hidden-lg" href="https://www.latam.com"\>\<img src="https://s.latamstatic.com/static/latam/images/content-image/header/latam-logo-sticky.svg" alt="LATAM Logo" height="28px"\>\</a\> 11:10:08.098 \</div\> 11:10:08.098 \<div class="hyf-goright"\> 11:10:08.098 \</a\> 11:10:08.098 11:10:08.098 11:10:08.098 \<a href="https://www.latam.com/pt\_br/central-de-ajuda/contato/" class=" hyf-header-element hyf-hidden-xs hyf-visible-sm hyf-visible-md hyf-visible-lg" target="\_self"\> 11:10:08.098 Contato 11:10:08.098 \</a\> 11:10:08.098 \<a href="https://www.latam.com/pt\_br/central-de-ajuda/contato/" class=" hyf-header-element hyf-visible-xs hyf-hidden-sm hyf-hidden-md hyf-hidden-lg" target="\_self"\> 11:10:08.098 \<span class="icon-bold-int015 icon-medium"\>\</span\> 11:10:08.098 \</a\> 11:10:08.098 11:10:08.098 11:10:08.098 \</div\> 11:10:08.098 \</section\> 11:10:08.098 \</nav\> 11:10:08.098 \</div\> 11:10:08.098 \<script type="text/javascript"\>(function(){function header(){this.homesMultiplus=[];this.appsMultiplus=[];};header.prototype={cleanSelector:function(selector){selector.forEach(function(select){document.querySelector(select).removeAttribute("style");});},removeStyles:function(selectors){selectors.forEach(function(select){document.querySelector(select).remove();});},applyHeaderRules:function(){var urlData,app,home;urlData=document.location.pathname;urlData=urlData.split("/");app=urlData[4];home=urlData[1];this.cleanSelector(["#hyfLatam"]);}};var header=new header();header.applyHeaderRules();})();\</script\> 11:10:08.098 11:10:08.098 11:10:08.098 \<div id="appMain" class="hyf-mu-content" tabIndex="-1" role="main"\> 11:10:08.098 \<div class="container"\> 11:10:08.098 \<noscript\> 11:10:08.098 \<div\>Para una mejor experiencia en LAN.com, habilite JavaScript 11:10:08.098 en su navegador\</div\> 11:10:08.098 \</noscript\> 11:10:08.098 \<div id="mainContent"\> 11:10:08.098 \</div\> 11:10:08.099 \<script type="text/javascript"\>(function(global){global.LAN=global.LAN?global.LAN:{};})(this);LAN.Environment={env:'production',jsLibBaseUrl:'/js/libs/',cssBaseUrl:'/layout/ui/3/css/',lastDirectRequest:'2018-08-24T09:10:06+0000',dictionary:true,debug:false,home:'pt\_br',site:'lan',country:'BR',language:'PT',portal:'personas',application:'mybookings',step:'',appDist:'dist',jsAppBaseUrl:'/apps/mybookings/2.2.1/',appMainContent:'mainContent'};LAN.Configuration={'urlHome':'http://www.lan.com/','paasDomain':'https://bff.latam.com','urlConfiguration':'/ws/application/common/configuration/1.1/rest/search\_configuration','cmsUrl':'http://www.lan.com','dataSource':'https://bff.latam.com','bagCardHomesEnabled':'es\_ec, es\_co','plusgradeApiKey':'KJkRYY2KaKbnDTPlBnAM08H9','enabledDomains':'.\*','defaultProtocol':'http','theme':''};\</script\> 11:10:08.099 11:10:08.099 11:10:08.099 11:10:08.099 \<script type="text/javascript" src="https://s.latamstatic.com/js/libs/external/require/2.1.8/require.js"\>\</script\> 11:10:08.099 \<script type="text/javascript" src="https://s.latamstatic.com/js/libs/lan/utils/requireConfig/2.1/requireConfig.min.js"\>\</script\> 11:10:08.099 11:10:08.099 \<script type="text/javascript" src="https://s.latamstatic.com/apps/mybookings/2.2.1/dist/js/mybookings.config.js"\>\</script\> 11:10:08.099 11:10:08.099 11:10:08.099 \<script type="text/javascript" async src="https://s.latamstatic.com/apps/mybookings/2.2.1/dist/js/mybookings.js"\>\</script\> 11:10:08.099 11:10:08.099 \</div\> 11:10:08.099 \</div\> 11:10:08.099 \<div class="hyf-mu-footer"\> 11:10:08.099 \<style id="styleFooterLatam"\>.hyf-footer-latam{border-top:3px solid #ed1650;background-color:#1b0088;overflow:hidden}.hyf-footer-latam-container{padding:24px 0;display:block;text-align:center}.hyf-footer-latam-container p{font-size:1.0em;line-height:120%;vertical-align:middle;color:#bfbfbf;margin:0}.hyf-footer-latam-copyright{overflow:hidden;text-align:center}.hyf-footer-latam-logo{display:block;text-align:center}.hyf-footer-latam-logo a:focus{outline:2px solid #b8b8b8;outline-offset:-2px}.hyf-footer-latam-16{height:16px;display:block}.hyf-col-f25{width:100%}.hyf-col-f75{width:100%}@media (min-width:768px){.hyf-footer-latam-logo{text-align:right}.hyf-footer-latam-copyright{text-align:left}.hyf-footer-latam-container p{float:left}.hyf-footer-latam-container{padding:20px 0}.hyf-col-f25{width:auto}.hyf-col-f75{width:auto}.hyf-footer-latam-16{height:0}}@media only screen and (min-width:992px){.hyf-footer-latam-16{height:0}}@media only screen and (min-width:1200px){.hyf-footer-latam-16{height:7px}}\</style\> 11:10:08.099 \<footer id="appFooterLatam" role="contentinfo" class="hyf-footer-latam" style="display:none"\> 11:10:08.099 \<div class="hyf-container hyf-footer-latam-container"\> 11:10:08.099 \<div class="footer-latam-copyright hyf-goleft hyf-col-f75"\> 11:10:08.099 \<div class="hyf-hidden-sm hyf-hidden-md hyf-visible-xs hyf-visible-lg hyf-footer-latam-16"\>\<br\>\</div\> 11:10:08.099 \<p\>&copy; 2018 LATAM Airlines Brasil\</p\> 11:10:08.099 \<p class="hyf-hidden-sm hyf-hidden-md hyf-hidden-lg hyf-visible-xs"\>staticFooter.latam.copyright2\</p\> 11:10:08.099 \<div class="hyf-hidden-lg hyf-hidden-xs hyf-visible-sm hyf-visible-md"\>\<br\>\</div\> 11:10:08.099 \<p class="hyf-hidden-xs hyf-visible-sm hyf-visible-md hyf-visible-lg"\> 11:10:08.099 11:10:08.099 \<span class="hyf-hidden-xs hyf-hidden-sm hyf-hidden-md hyf-visible-lg" style="color:#ed1650"\>-\</span\> Rua Verbo Divino n&ordm; 2001, andares 3&ordm; ao 6&ordm; Ch&aacute;cara Santo Ant&ocirc;nio, CEP 04.719-002 S&atilde;o Paulo/SP 11:10:08.099 11:10:08.099 11:10:08.099 \<span style="color:#ed1650"\>-\</span\> CNPJ: 02.012.862/0001-60 11:10:08.099 11:10:08.099 \</p\> 11:10:08.099 \</div\> 11:10:08.099 \<div class="hyf-footer-latam-logo hyf-goright hyf-col-f25"\> 11:10:08.099 \<a href="#" target="target" title="titulo"\> 11:10:08.099 \<img src="https://s.latamstatic.com/css/img/logos/LATAM\_Logo\_Footer.svg" alt="alt" height="36px"/\> 11:10:08.099 \</a\> 11:10:08.099 \</div\> 11:10:08.099 \</div\> 11:10:08.099 \</footer\> 11:10:08.099 11:10:08.099 11:10:08.099 \<script type="text/javascript" async src="https://s.latamstatic.com/js/libs/lan/commons/commonsFunc/1.0.0/headerFuncs.min.js"\>\</script\> 11:10:08.099 11:10:08.099 \<script type="text/javascript" async src="https://s.latamstatic.com/js/libs/lan/commons/commonsFunc/1.0.0/accessibilityFuncs.min.js"\>\</script\> 11:10:08.099 11:10:08.099 11:10:08.099 \<script type="text/javascript"\>(function(){function footer(){this.homesMultiplus=[];this.appsMultiplus=[];};footer.prototype={cleanSelector:function(selector){selector.forEach(function(select){document.querySelector(select).removeAttribute("style");});},removeStyles:function(selectors){selectors.forEach(function(select){document.querySelector(select).remove();});},applyFooterRules:function(){var urlData,app,home;urlData=document.location.pathname;urlData=urlData.split("/");app=urlData[4];home=urlData[1];this.cleanSelector(["#appFooterLatam"])}};var footer=new footer();footer.applyFooterRules();})();\</script\> 11:10:08.099 11:10:08.099 \</div\> 11:10:08.099 \</div\> 11:10:08.099 \<script type="text/javascript"\>var menuUp=false;var hideVar=null;function skipToMainContent(e){var k=(document.all)?e.keyCode:e.which;if(k===13){document.getElementById('appMain').focus();return false;}}function hyfShowMenu(){var e=document.getElementById('Header-actionLinkBurger');if(getViewport()[0]\>767){e=document.getElementById('showMenu');e.style.display='none';e=document.getElementById('hideMenu');e.style.display='inline';e.focus();}else{setMobileview();e.href="javascript:hyfHideMenu();" 11:10:08.099 e=document.getElementsByClassName('hyf-modal-black')[0];e.style.display="block";}e=document.getElementById('hyf-country-selector');e.style.display='inline';menuUp=true;}function setMobileview(){var e=document.getElementsByTagName('body')[0];e.className='hyf-mobile-view';e=document.getElementById('hyf-country-selector');var alto=getViewport()[1].toString();e.style.maxHeight=alto+'px';e.style.overflow='scroll';e.style.overflowX='hidden';e.style.overflowY='auto';hyfHideCs();}function unsetMobileview(){var e=document.getElementsByTagName('body')[0];e.removeAttribute('class');e=document.getElementById('hyf-country-selector');e.style.maxHeight='';e.style.overflow='hidden';e.style.overflowY='auto';hyfShowCs();e=document.getElementById('hyf-cs-first');e.style.display='none';}function hyfHideMenu(){var e=document.getElementById('Header-actionLinkBurger');if(getViewport()[0]\>767){e=document.getElementById('showMenu');e.style.display='inline';e=document.getElementById('hideMenu');e.style.display='none';}else{e=document.getElementById('showMenu');e.style.display='none';e=document.getElementById('hideMenu');e.style.display='none';e=document.getElementsByClassName('hyf-modal-black')[0];e.style.display="none";unsetMobileview();e=document.getElementById('Header-actionLinkBurger');e.href="javascript:hyfShowMenu();"}e=document.getElementById('hyf-country-selector');e.style.display='none';menuUp=false;}function hyfgoHideMenu(){if(!menuUp){if(document.getElementById('hyf-country-selector').style.display!="none")hyfHideMenu();}}function hyfHideCs(){var e=document.getElementById('hyf-cs');e.href="javascript:hyfShowCs();";e=document.getElementsByClassName('hyf-cs');for(var i=0;i\<e.length;i++)e[i].style.display='none';}function hyfShowCs(){var e=document.getElementById('hyf-cs');e.href="javascript:hyfHideCs();";e=document.getElementsByClassName('hyf-cs');for(var i=0;i\<e.length;i++)e[i].style.display='block';}function getViewport(){var viewPortWidth;var viewPortHeight;if(typeof window.innerWidth!='undefined'){viewPortWidth=window.innerWidth,viewPortHeight=window.innerHeight}else{viewPortWidth=document.getElementsByTagName('body')[0].clientWidth,viewPortHeight=document.getElementsByTagName('body')[0].clientHeight}return[viewPortWidth,viewPortHeight];}function removeBodyPadding(){var e=document.getElementsByTagName('body')[0];e.removeAttribute("style");e=document.getElementById('hyf-country-selector');e.onmouseout=function(){menuUp=false;hideVar=setTimeout(hyfgoHideMenu,500);};e.onmouseover=function(){menuUp=true;hideVar=null;};e.onfocus=function(){this.style.display="none";e=document.getElementById('hideMenu');e.style.display='inline';};window.onresize=function(){hyfHideMenu();return true;} 11:10:08.099 e=document.getElementsByClassName('Header-logoLink');for(var i=0;i\<e.length;i++)e[i].onfocus=function(){hyfHideMenu();this.focus()};e=document.getElementById('returnLink');e.onfocus=function(){hyfHideMenu()} 11:10:08.099 e=document.getElementsByClassName('hyf-country-ul');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('hyf-modal-black')[0];e.onmouseover=function(){hyfHideMenu();} 11:10:08.099 e=document.getElementsByClassName('hyf-not-underline');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('lt-icon-flag');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('hyf-flag-centrado');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('hyf-country-selector-title');for(var i=0;i\<e.length;i++)e[i].onmouseover=function(){menuUp=true;hideVar=null};e=document.getElementsByClassName('hyf-login-info');e[0].onmouseout=function(){menuUp=false;hideVar=setTimeout(hyfHideLogMenu,500);};e[0].onmouseover=function(){menuUp=true;hideVar=null;};e=document.getElementsByClassName('hyf-login-info-a');for(i=0;i\<e.length;i++){e[i].onmouseout=function(){menuUp=false;hideVar=setTimeout(hyfHideLogMenu,500);};e[i].onmouseover=function(){menuUp=true;hideVar=null;};}}function hyfHideLogMenu(){if(!menuUp){var e=document.getElementsByClassName('hyf-login-info');e[0].style.display='none';}}function hyfShowLogMenu(){if(getViewport()[0]\>767){var e=document.getElementsByClassName('hyf-login-info');e[0].style.display='block';}}function ShowLoginMenu(){var e=document.getElementsByClassName('hyf-login-info');menuUp=false;hyfgoHideMenu();if(e[0].style.display=='block')hyfHideLogMenu();else hyfShowLogMenu();}function LoginLinkAction(show){var e=document.getElementById('loginLatamBox');if(show){e.style.display="inline-table";e.style.padding="8px 4px" 11:10:08.099 var e=document.getElementsByClassName('hyf-header-element');for(i=0;i\<e.length;i++)e[i].style.top='0';}else{e.style.display="none";e.style.padding="0" 11:10:08.099 var e=document.getElementsByClassName('hyf-header-element');for(i=0;i\<e.length;i++)e[i].style.top='6px';}}function UserLoginAction(show){var e=document.getElementById('userLatamBox');if(show){e.style.display="inline-table";var e=document.getElementsByClassName('hyf-header-element');for(i=0;i\<e.length;i++)e[i].style.top='0';}else{e.style.display="none";var e=document.getElementsByClassName('hyf-header-element');for(i=0;i\<e.length;i++)e[i].style.top='6px';}}\</script\> 11:10:08.099 \</body\> 11:10:08.099 \</html\>

/Edit: Ok, error is your anchor-point: #reservas

Leave that out and it works with both GET and POST

Good catch!