work out webrequest properties using browser

I can log into this site using chrome, but not IE.
https://www.connect2nse.com/iislNet/Login.jsp?username=ID&password=PWD&submit=Submit

I have Fiddler on my machine and am using .NET 3.5.  How can I use the broswer or Fiddler to set up my web request in C#?

request = (HttpWebRequest)WebRequest.Create(url.ToString());
request.UserAgent = "Chrome/125.22.48.90";
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.KeepAlive = true;
request.Headers.Add("Keep-Alive: 600");
request.Credentials = CredentialCache.DefaultCredentials;
//ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
//Or SecurityProtocolType.Ssl3
request.CookieContainer = new CookieContainer();
AlHal2Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
Do you get an error with IE?
0
AlHal2Author Commented:
IE Message: Internet Explorer cannot display the webpage
Chrome is fine.
0
Bob LearnedCommented:
If you look at the IE request with Fiddler running, do you get any 404 errors (or other errors)?  It also sounds like you have an authorization issue, but since Chrome is working, I wouldn't know off the top of my head what that would be, since I am sitting over here in the dark.
0
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

AlHal2Author Commented:
I can't see any errors as you describe.  Should I delete the question?
0
Bob LearnedCommented:
Are you able to share the Fiddler log for the request?
0
AlHal2Author Commented:
It says that The extension of the uploaded file is not in the list of accepted extensions.
0
Bob LearnedCommented:
1) Why would it think that you are trying to upload a file when you are trying to log in?

2) Why are you using this content type?

    request.ContentType = "application/x-www-form-urlencoded";

3) Why are you setting the user agent this way?
   
     request.UserAgent = "Chrome/125.22.48.90";
0
AlHal2Author Commented:
Sorry, I got this message when I tried to upload the Fiddler log to Experts Exchange.
Regarding your other questions I inherited this program.  Where can I find out the values that these fields normally have?
0
Bob LearnedCommented:
1) You should be able to change the extension to one that is allowed, or paste into a Word document, and upload that.

2) If you want to create a request from the browser, there is the PostMan extension for Chrome:

Postman - REST Client (Packaged App)
https://chrome.google.com/webstore/detail/postman-rest-client-packa/fhbjgbiflinjbdggehcddcbncdddomop?hl=en
0
AlHal2Author Commented:
I'm seeing a message no cache, must revalidate.  Does that mean anything?

I'm opening up the SAZ file and it's not coming up in a text editor.  I've not uploaded it straight away as it contains the credentials we use to log into the site.
0
Bob LearnedCommented:
"I'm seeing a message no cache, must revalidate"
What is the exact message text that you are seeing (since that doesn't mean anything to me)?

What is a SAZ file?
0
AlHal2Author Commented:
I think the problem is at the supplier end and due to my ignorance of Fiddler.  I don't want to waste any more of your time.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AlHal2Author Commented:
I need to learn Fiddler.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.