Click here to Skip to main content
14,367,980 members

Web Development

 
QuestionWeb Site Log Out in Mozilla Firefox on Post back Pin
Siddharth Chudasama10-Oct-19 23:52
memberSiddharth Chudasama10-Oct-19 23:52 
QuestionRe: Web Site Log Out in Mozilla Firefox on Post back Pin
ZurdoDev28-Oct-19 10:50
professionalZurdoDev28-Oct-19 10:50 
QuestionHow to get uploaded file in ajax Post Pin
KGr283-Oct-19 5:17
memberKGr283-Oct-19 5:17 
AnswerRe: How to get uploaded file in ajax Post Pin
Richard Deeming3-Oct-19 5:33
mveRichard Deeming3-Oct-19 5:33 
GeneralRe: How to get uploaded file in ajax Post Pin
KGr283-Oct-19 5:39
memberKGr283-Oct-19 5:39 
GeneralRe: How to get uploaded file in ajax Post Pin
Richard Deeming3-Oct-19 5:52
mveRichard Deeming3-Oct-19 5:52 
GeneralRe: How to get uploaded file in ajax Post Pin
KGr283-Oct-19 8:12
memberKGr283-Oct-19 8:12 
QuestionCall To test Web API Fails Pin
Kevin Marois1-Oct-19 11:35
professionalKevin Marois1-Oct-19 11:35 
I'm trying to test a C# Web API. I go to a browser and enter "localhost:65078/api/test/test", it fails with "Response status code does not indicate success: 401 (Unauthorized)."

If I use "[http://192.168.51.66:65078/api/test/test](http://192.168.51.66:65078/api/test/test)" then it works. Here's my test code:
private static async Task TestWebAPI(string url)
{
    using (var client = new HttpClient())
    {
        using (var httpResponse = await client.GetAsync(url))
        {
            try
            {
                httpResponse.EnsureSuccessStatusCode();     //<=======EXCEPTION HERE
                string responsContent = await httpResponse.Content.ReadAsStringAsync();
            }
            catch (Exception e)
            {
                _logger.Log(LogLevel.Error, e);
            }
        }
    }
}
There are a lot of responses on Google about this message. Anyone have any insight into what might be wrong?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Call To test Web API Fails Pin
Afzaal Ahmad Zeeshan4-Oct-19 23:42
mveAfzaal Ahmad Zeeshan4-Oct-19 23:42 
QuestionThe type or namespace name 'EigenObjectRecognizer' could not be found (are you missing a using directive or an assembly reference?) Pin
Fatemehhhhh29-Sep-19 21:55
memberFatemehhhhh29-Sep-19 21:55 
AnswerRe: The type or namespace name 'EigenObjectRecognizer' could not be found (are you missing a using directive or an assembly reference?) Pin
Richard MacCutchan29-Sep-19 23:54
protectorRichard MacCutchan29-Sep-19 23:54 
QuestionIIS issues for Core webAPi deployment Pin
Simon_Whale25-Sep-19 3:31
professionalSimon_Whale25-Sep-19 3:31 
AnswerRe: IIS issues for Core webAPi deployment Pin
Richard Deeming25-Sep-19 3:51
mveRichard Deeming25-Sep-19 3:51 
GeneralRe: IIS issues for Core webAPi deployment Pin
Simon_Whale25-Sep-19 5:09
professionalSimon_Whale25-Sep-19 5:09 
Questionbutton and Align Pin
davidovic12323-Sep-19 5:07
memberdavidovic12323-Sep-19 5:07 
AnswerRe: WooCommerce - Buy Product button and Align buttons Pin
Mycroft Holmes23-Sep-19 13:53
memberMycroft Holmes23-Sep-19 13:53 
QuestionNeed a custom code for WordPress to show big image as a profile image Pin
Brett Alvarez20-Sep-19 2:56
professionalBrett Alvarez20-Sep-19 2:56 
QuestionWhat does Microsoft Use to make Office Online? Pin
Peter Moore - Chicago12-Sep-19 9:03
memberPeter Moore - Chicago12-Sep-19 9:03 
AnswerRe: What does Microsoft Use to make Office Online? Pin
Richard MacCutchan12-Sep-19 12:23
protectorRichard MacCutchan12-Sep-19 12:23 
GeneralRe: What does Microsoft Use to make Office Online? Pin
Peter Moore - Chicago12-Sep-19 12:31
memberPeter Moore - Chicago12-Sep-19 12:31 
GeneralRe: What does Microsoft Use to make Office Online? Pin
Richard MacCutchan12-Sep-19 12:34
protectorRichard MacCutchan12-Sep-19 12:34 
AnswerRe: What does Microsoft Use to make Office Online? Pin
#realJSOP16-Sep-19 2:59
mve#realJSOP16-Sep-19 2:59 
AnswerRe: What does Microsoft Use to make Office Online? Pin
ZurdoDev16-Sep-19 4:46
professionalZurdoDev16-Sep-19 4:46 
QuestionNeed a Specific Button (for MAP linking) Pin
Member 120802013-Sep-19 10:12
memberMember 120802013-Sep-19 10:12 
QuestionHow much HTML CSS should I learn Pin
Member 1456898627-Aug-19 7:19
memberMember 1456898627-Aug-19 7:19 

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.