title: How to make restapi call from jasmine-protractor for non-angular app
body: <p>I am using jasmine-protractor e2e framework to test one of our desktop App. I am totally new to this. So if something is not clear please ask.</p>
  
  <p>This is how I am logging in to the server. Server uses SSO for authentication</p>
  
  <pre><code>describe('Protractor', function() {
    beforeEach(function() {
    browser.ignoreSynchronization = true
    browser.get('https://myserver.com/login.html',60000);   
  });
  
  
  it('hi', function () {
    var btn = element(by.css('.loginFormGroup')).element(by.partialLinkText('Tegile'));
    btn.click();
    // browser.ignoreSynchronization = false;
    var user = element(by.css('.UsernamePasswordTable')).element(By.id('ctl00_ContentPlaceHolder1_UsernameTextBox'));
    user.sendKeys('user');
  
    var pass = element(by.css('.UsernamePasswordTable')).element(By.id('ctl00_ContentPlaceHolder1_PasswordTextBox'));
    pass.sendKeys('passwd');
  
    var SignIn = element(by.css('.UsernamePasswordTable')).element(By.id('ctl00_ContentPlaceHolder1_SubmitButton'));
    // browser.pause();
    SignIn.click();
  });
  </code></pre>
  
  <p>After this i would like to execute restapi on the same server. I want it to use same session if possible.</p>
  
  <p>I tried to use request/request, but didnt work. Maybe i was not using it correctly.</p>