Click here to Skip to main content
15,347,963 members
Home / Discussions / Web Development
   

Web Development

 
PinnedHow to get an answer to your question Pin
Chris Maunder4-Sep-10 2:25
cofounderChris Maunder4-Sep-10 2:25 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder12-Jul-09 22:40
cofounderChris Maunder12-Jul-09 22:40 
QuestionVisual Studio 2022 vs Visual Studio Code for Angular development Pin
Danpeking9-Jun-22 23:20
MemberDanpeking9-Jun-22 23:20 
QuestionSearch Function Pin
Yhanzoe Adigue6-Jun-22 16:28
MemberYhanzoe Adigue6-Jun-22 16:28 
AnswerRe: Search Function Pin
Pete O'Hanlon6-Jun-22 20:41
mvaPete O'Hanlon6-Jun-22 20:41 
QuestionI'm trying to interact with a select element with selenium Pin
lucas lima 202229-May-22 13:25
Memberlucas lima 202229-May-22 13:25 
QuestionNew MVC5 project, Bootstrap update, Fail Pin
#realJSOP26-May-22 4:41
mva#realJSOP26-May-22 4:41 
AnswerRe: New MVC5 project, Bootstrap update, Fail Pin
Richard Deeming26-May-22 21:41
mveRichard Deeming26-May-22 21:41 
AnswerRe: New MVC5 project, Bootstrap update, Fail Pin
Matthew Dennis27-May-22 4:18
sysadminMatthew Dennis27-May-22 4:18 
GeneralRe: New MVC5 project, Bootstrap update, Fail Pin
#realJSOP27-May-22 10:12
mva#realJSOP27-May-22 10:12 
QuestionIMAP and SMTP Server Pin
Aashna Khanna24-May-22 21:42
professionalAashna Khanna24-May-22 21:42 
AnswerRe: IMAP and SMTP Server Pin
Richard MacCutchan24-May-22 22:01
mveRichard MacCutchan24-May-22 22:01 
QuestionMVC5 Project Template Pin
#realJSOP13-May-22 0:06
mva#realJSOP13-May-22 0:06 
QuestionHow to send Email From Multiple SMTP In One shot. Pin
Ramendra Kumar Sinha11-May-22 18:52
MemberRamendra Kumar Sinha11-May-22 18:52 
AnswerRe: How to send Email From Multiple SMTP In One shot. Pin
Richard Deeming11-May-22 21:41
mveRichard Deeming11-May-22 21:41 
QuestionFont colour and background colour combinations hard to read Pin
Ross_Petersen2-May-22 22:24
professionalRoss_Petersen2-May-22 22:24 
Questionhow do I get total quantity from this code Pin
wixily jnr28-Apr-22 13:26
Memberwixily jnr28-Apr-22 13:26 
AnswerRe: how do I get total quantity from this code Pin
Richard MacCutchan28-Apr-22 21:32
mveRichard MacCutchan28-Apr-22 21:32 
GeneralRe: how do I get total quantity from this code Pin
wixily jnr29-Apr-22 8:17
Memberwixily jnr29-Apr-22 8:17 
Questionsending mail using asp classic Pin
Member 1557807313-Apr-22 12:41
MemberMember 1557807313-Apr-22 12:41 
Rant[REPOST] sending mail using asp classic Pin
Richard Deeming18-Apr-22 22:03
mveRichard Deeming18-Apr-22 22:03 
QuestionChrome Browser Extension API - access to the profile being used Pin
Andreas Mertens12-Apr-22 12:18
professionalAndreas Mertens12-Apr-22 12:18 
QuestionSend Email using Classic ASP Pin
Ram Teckchandani11-Apr-22 16:01
MemberRam Teckchandani11-Apr-22 16:01 
AnswerRe: Send Email using Classic ASP Pin
Richard MacCutchan11-Apr-22 22:01
mveRichard MacCutchan11-Apr-22 22:01 
QuestionWeb API Problem Pin
Kevin Marois2-Apr-22 10:19
professionalKevin Marois2-Apr-22 10:19 
I have a simple ASP.Net Web API on my home server. This is just for a Proof of Concept I'm working on.

There's one method on the controller called Login which takes a UserEntity:
[HttpPost]
public UserEntity Login(UserEntity user)
{
    return Repository.Login(user);
}
the repo:
public UserEntity Login(UserEntity user)
{
    var results = new UserEntity();

    if (user.UserName.ToLower() == "admin" &&
        user.Password.ToLower() == "admin")
    {
        results.UserName = user.UserName;
        results.Password = user.Password;
        results.IsLoggedIn = true;
    }

    return results;
}
So, if you pass "admin" and "admin", I create a new user entity with IsLoggedIn = true. Again, all I'm trying to do is make a simple call with a user object and get a repsonse.

I'm using Postman to test the API. If I make this POST call with HTTPS
https://192.168.1.2:65001/api/Login/Login
and pass this as the body:
{"UserName": "admin","Password": "admin"}
then it fails with "Could not get a response" and
Error: write EPROTO 1432630488:error:100000f7:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER:../../third_party/boringssl/src/ssl/tls_record.cc:242:

However, if I change the URL to HTTP then it works fine and I get back the expected result:
{
    "IsLoggedIn": true,
    "UserName": "admin",
    "Password": "admin",
    "Id": 0
}

I'm a bit lost here. Could someone help me figure this out?

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.