title: The server couldn't send a response
body: <p>Good day.
  I know that this question is already ask before. But i can't really make this thing work.</p>
  
  <p>I am using Visual Studio 2017</p>
  
  <p>I am following a tutorial on how to Build an app with Asp.net core and angular</p>
  
  <p>My problem is i can't send request to the site using postman.</p>
  
  <p>I have read the answers from the link below but all of them is not working</p>
  
  <p><a href="https://stackoverflow.com/questions/47806876/could-not-get-any-response-response-when-using-postman-with-subdomain">&quot;Could not get any response&quot; response when using postman with subdomain</a> </p>
  
  <p>This is my launchSettings.json</p>
  
  <pre><code>"DatingApp.API": {
        "commandName": "Project",
        "launchBrowser": false,
        "launchUrl": "api/values",
        "applicationUrl": "http://localhost:5000",
        "environmentVariables": {
          "ASPNETCORE_ENVIRONMENT": "Development"
        }
  </code></pre>
  
  <p>When i run the API </p>
  
  <p><a href="https://i.stack.imgur.com/1o4cT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1o4cT.jpg" alt="enter image description here"></a></p>
  
  <p>(<a href="https://localhost:5000/api/values" rel="nofollow noreferrer">https://localhost:5000/api/values</a>) and send request using Postman. </p>
  
  <p>It give's me error</p>
  
  <p><a href="https://i.stack.imgur.com/GE4n5.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GE4n5.jpg" alt="enter image description here"></a></p>
  
  <p>And i'm also receiving error in the Visual Studio Output window</p>
  
  <pre><code>Microsoft.AspNetCore.Server.Kestrel:Information: Connection id "0HLHTBLQGR6JP" bad request data: "Invalid request line: '\x16\x03\x01\x01\x01\x01\x00\x00\xFD\x03\x03e*\xD2K\x9C\xA5\x99\xAA\xB4.\x0C+\x8F\xE2\xFF\xB6$\x05\xDA\xA4\xD5a\xBD\x1Fx\xBB\x18\xF6\xE5\xD5fO\x00\x00n\xC0/\xC0+\xC00\xC0,\x00\x9E\xC0'\x00g\xC0(\x00k\xC0$\xC0\x14\xC0\x0A'"
  
  Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Invalid request line: '\x16\x03\x01\x01\x01\x01\x00\x00\xFD\x03\x03e*\xD2K\x9C\xA5\x99\xAA\xB4.\x0C+\x8F\xE2\xFF\xB6$\x05\xDA\xA4\xD5a\xBD\x1Fx\xBB\x18\xF6\xE5\xD5fO\x00\x00n\xC0/\xC0+\xC00\xC0,\x00\x9E\xC0'\x00g\xC0(\x00k\xC0$\xC0\x14\xC0\x0A'
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser`1.RejectRequestLine(Byte* requestLine, Int32 length)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser`1.GetUnknownMethod(Byte* data, Int32 length, Int32&amp; methodLength)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser`1.ParseRequestLine(TRequestHandler handler, Byte* data, Int32 length)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser`1.ParseRequestLine(TRequestHandler handler, ReadOnlySequence`1&amp; buffer, SequencePosition&amp; consumed, SequencePosition&amp; examined)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpParser`1.Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.IHttpParser&lt;TRequestHandler&gt;.ParseRequestLine(TRequestHandler handler, ReadOnlySequence`1&amp; buffer, SequencePosition&amp; consumed, SequencePosition&amp; examined)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1Connection.TakeStartLine(ReadOnlySequence`1 buffer, SequencePosition&amp; consumed, SequencePosition&amp; examined)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1Connection.ParseRequest(ReadOnlySequence`1 buffer, SequencePosition&amp; consumed, SequencePosition&amp; examined)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1Connection.TryParseRequest(ReadResult result, Boolean&amp; endConnection)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
     at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequestsAsync[TContext](IHttpApplication`1 application)
  </code></pre>
  
  <p>But when i run the program using IIS Express. it works and i can send request using the Postman.</p>
  
  <p>What's wrong with my code?</p>