title: "function not found" error when making both GET and POST requests to a Web App
body: <p>I'm getting a</p>
  <pre><code>Script function not found: doGet
  </code></pre>
  <p>OR</p>
  <pre><code>Script function not found: doPost
  </code></pre>
  <p>when I GET/POST to my Google script:</p>
  <pre><code>function doGet(e){return ContentService.createTextOutput(&quot;User says&quot;)}
  
  function doPost(e) {
    return HtmlService.createHtmlOutput(
      &quot;&lt;form action='http://www.example.com/users/gmail_permission/' method='post' id='foo'&gt;&quot; + 
      &quot;&lt;input type='hidden' name='gmail' value='getEmail()' &gt;&quot; +
      &quot;&lt;input type='hidden' name='id' value='e.parameter.user_id' &gt;&quot; +    
      &quot;&lt;/form&gt;&quot; +
      &quot;&lt;script&gt;document.getElementById('foo').submit();&lt;/script&gt;&quot;);
  }
  
  function getEmail() {
    return Session.getActiveUser().getEmail();
  }
  </code></pre>
  <p>The weird thing is I'll get the above error when I visit the Webapp URL on my browser. But when I use Hurl.it, I just get redirected to Google Drive. But when I 'Test web app for your latest code.' on google.script.com, the GET response works fine.</p>
  <p>Pretty lost as to what is going on.... here is my script:</p>
  <pre><code> https://script.google.com/macros/s/AKfycbz0XGeoEuP4V6W60N7yP-dDiLltPefxmqzhMJurnGzOhPfqA_er/exec
  </code></pre>
  <p>Here are the GETs</p>
  <pre><code> FROM Hurl.it - GET https://accounts.google.com/ServiceLogin?service=wise&amp;followup=https://script.google.com/macros/s/AKfycbz0XGeoEuP4V6W60N7yP-dDiLltPefxmqzhMJurnGzOhPfqA_er/exec&amp;continue=https://script.google.com/macros/s/AKfycbz0XGeoEuP4V6W60N7yP-dDiLltPefxmqzhMJurnGzOhPfqA_er/exec&amp;passive=1209600
  
   FROM script.google.com: https://script.google.com/macros/s/AKfycbyCH4Jk7VcEIhE52jIorIBzcghRYAPRuwuzFSHwaWIB/dev
  
   FROM browser:https://script.google.com/macros/s/AKfycbz0XGeoEuP4V6W60N7yP-dDiLltPefxmqzhMJurnGzOhPfqA_er/exec
  </code></pre>