Search results for query: *

  • Users: nkat
  • Order by date
  1. nkat

    calculate data in Submit, use in Grid

    Thank you! So right! I've figured that statelessness hard way As this app is to be used by a single user, I moved to a static class Model for an in between sessions data storage. To serve more than one, as you rightly mentioned, I will have to store grid data in somewhere. Redis cache that I...
  2. nkat

    calculate data in Submit, use in Grid

    Hello! Please, consider a simple .NET CORE app. Controller using Kendo.Mvc.Extensions; using Kendo.Mvc.UI; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using TelerikAspNetCoreApp1.Models; namespace...
  3. nkat

    debugging Parallel.Foreach

    I might give the book a try. Thank you, Skydiver! Your reply helps as usual
  4. nkat

    debugging Parallel.Foreach

    Good day, everyone! Here's this marvelous piece of code that uses Parallel.ForEach to build an Active Directory OU tree. using System.DirectoryServices; using System.Threading.Tasks; public class ADTree { DirectoryEntry rootOU = null; string rootDN = string.Empty...
  5. nkat

    how get status code of a POST (302 object moved)

    that was it. Thank you, sir!
  6. nkat

    how get status code of a POST (302 object moved)

    Hello! Don't worry about that as 1) I certainly am 2) the app runs on my VM 3) using this example I'm just learning C# just like I'm reading A. Freemans book and asking around other C# related questions Now, when we are certain that nothing goes on against any law, would you care to give an...
  7. nkat

    how get status code of a POST (302 object moved)

    Hello! consider the following scenario an intranet website requires authentication. This is a form based authentication that returns a cookie that is used in consecutive requests to the website. When the form with a correct password is submitted via POST the site gives back this (see the...
  8. nkat

    scrape data from website with login

    just in case anyone else comes across. This code got me the page I was looking for var baseAddress = new Uri("http://192.168.1.21"); using (var handler = new HttpClientHandler { UseCookies = false }) using (var client = new HttpClient(handler) { BaseAddress = baseAddress }) { var message =...
  9. nkat

    scrape data from website with login

    an important part of the picture is missing. Namely – authentication credentials In the Fiddler I got this looks different from all the headers mentioned above that are pairs name: value How should I add that line into the POST request?
  10. nkat

    scrape data from website with login

    Thank you for your suggestion to use httpclient! I'm struggling with it, though. Here it is said, "If you have access to the website, connect to it using the right credentials and capture the traffic using Fiddler. Then, make sure WebClient sends out the right cookies, request headers, query...
  11. nkat

    scrape data from website with login

    Fair enough, thank you! Here you are. I've switched off the NTLM authentication in the app, now the login page just prompts for maintenance password and Fiddler tells me that it is a form based authentication Now, googling for "HttpClient scrape data from website with login c#" I got this...
  12. nkat

    scrape data from website with login

    Thank you for the reply! If the answer to your 2nd and 3rd question is "Yes", what would be a code example to proceed?
  13. nkat

    scrape data from website with login

    from Fiddler Classic I got POST request containing login_maintenance=%24MAINTENANCE%5Croot&pwd_maintenance=BadDog22&url_redirect=%2Fwatchdoc%2Fadmin%2Fdefault.asp%3Fs%3DDEFAULT from that I derive that parameters for the form (if that is the form) are login_maintenance:$MAINTENANCE\root...
  14. nkat

    scrape data from website with login

    API does not exist, unfortunately. And trying to get info from devs would easily take months. While all you said is relevant and valid concerns, this does not bring me closer to solving the problem at hand. Do you know how to write a code that can get access to the page?
  15. nkat

    scrape data from website with login

    Excellent questions ) Could do that, if the data to scrape was not calculated on the fly, but stored somewhere. As I need thousands of samples, automation is very welcome
  16. nkat

    scrape data from website with login

    Hello! My goal is to scrape some data from a webpage 192.168.1.21/app/admin/directories.asp?id=username The website that controls it needs login before querying directories. This is the problem I’m trying to solve. For that, I’ve read this post, and it addresses a lot of my questions, but does...
  17. nkat

    Parametrizing installation process via a Wizard

    Skydiver, thank you! It helps
  18. nkat

    Parametrizing installation process via a Wizard

    Hello! There's a Windows Service written in C#. Inside its solution, there's a 'Microsoft Visual Studio Installer Project" It works well apart from one fact. To parametrize the service I need to change a line of XML file (specify a path to special file) The question is—how to create a Setup...
Back
Top Bottom