title: Dojo/request undefined despite require
body: <p>In a script associated with an Orchard view I try to post an AJAX to server with <code>dojo.request.post</code> function. However, I only get <code>esri/request</code>, <code>dojo/request</code> is undefined. I call the request outside the function where the <code>require</code> statements reside, but there's no problem with other required packages as long as I use them in correct format. <code>Dojo/request</code> works in our other project, so I suspect Orchard of messing things up (the other project's <code>dojo/request</code> use is in a plain page, not in a view), though I would expect problems caused by it to surface earlier.</p>
  
  <p>Important parts of the code:</p>
  
  <pre><code>require([ ... "dojo/request", ... ], function (... Request, ...) {
    //custom init function contents
  })
  
  function sendResults(featureSet) {
    //custom code processing the parameter, making uri, JSON and like
    dojo.request.post(uri, {
      //sending data
    })
  }
  </code></pre>
  
  <p>My razor require part in the same file contains:</p>
  
  <pre><code>Script.Require("esri/JavaScriptApi").AtHead();
  Script.Require("dojo").AtHead();
  </code></pre>
  
  <p>Those are defined in <code>resourcemanifest.cs</code>:</p>
  
  <pre><code> manifest.DefineScript("esri/JavaScriptApi").SetUrl("http://js.arcgis.com/3.14/");
   manifest.DefineScript("dojo").SetUrl("//ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js");
  </code></pre>
  
  <p>The error I get when I try to run the code:</p>
  
  <pre><code>TypeError: dojo.request is undefined
  </code></pre>
  
  <p>I've tested it in FireBug and confirmed that <code>dojo/request</code> doesn't exist (the same for variants, like <code>dojo/Request</code>), only <code>esri/request</code> is a function, but it has no <code>post</code> method.</p>
  
  <p>I'm stuck here. Google search lead to "plains of sheer desperation" (page 5+) with no useful output and my co-workers don't know. Does anyone know why I can't see <code>dojo/request</code> and how to get it?</p>