Link to home
Start Free TrialLog in
Avatar of darkducke
darkducke

asked on

Delphi ICS overbyte TSslHttpCli POST on asp.net C# page

I need to query an ASP.NET C # page using Delphi and the ICs overbyte TSslHttpCli component. I can get the login page with "GET" authenticate with "POST" but when making a query on an internal form using "POST" I am logged out with session expired.

I have a simple font doing the operations, who can help I send the fonts already working and showing where the error is.
Avatar of Kimputer
Kimputer

In these types of situations, capture the web traffic, use the browser first, then your app. Compare both server/client conversation, you'll probably see the difference and you can fix it to match the browser's client/server conversation.
If the page uses cookies, that's probably what you forgot to implement.
Avatar of darkducke

ASKER

Hello Kimputer, I did it all, I always do it first in the web browser, I've done it several times on other sites, but this one I can't, I've tried it in many ways, so I came here for help.
Hi,
If you need a static unprotected resource, you don’t need to put it “behind” asp.net processing pipeline. Just place it in a folder and allow guests to access it from IIS.
I'm not in charge on the site, I really need the application to do the operations, which will be programmed by the software. if anyone can help me I provide the download link of the application.
If you cannot change the access rights, then you’ll need an httpmodule dedicated to file handling. But this is more for downloading, not linking
If you tried, then you should know what the difference is between your browser and your app. Fix those differences. If not, supply 2 capture files (obviously each one, browser and app)).
Try to allow cookies and disallow redirects...
..
  IdHTTP1.AllowCookies := True;
  IdHTTP1.HandleRedirects := False;
..

Open in new window

This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.