Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: IDHTTP alternative?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Dec 4, 2016 6:36 AM Last Post By: Eli M Threads: [ Previous | Next ]
Oleg Merkuriev

Posts: 9
Registered: 12/27/16
IDHTTP alternative?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 27, 2016 1:59 AM
For Windows I use winnt.h component to define if a client is behind firewall and to verify the web-site certificate a client is connecting to. What should I use for that in Firemonkey as I design a cross-platform utility? Thanks.

Edited by: Oleg Merkuriev on Nov 27, 2016 3:15 AM

Edited by: Oleg Merkuriev on Nov 27, 2016 4:11 AM
Antonio Estevez

Posts: 665
Registered: 4/12/00
Re: IDHTTP alternative?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 27, 2016 2:17 AM   in response to: Oleg Merkuriev in response to: Oleg Merkuriev
El 27/11/2016 a las 10:59, Oleg Merkuriev escribió:
For Windows I use IDHTTP component to define if a client is behind firewall and to verify the web-site certificate a client is connecting to. What should I use for that in Firemonkey as I design a cross-platform utility? Thanks.

Indy components are available on all platforms So you can still use TIdHTTP in Firemonkey in the same way as in VCL.

Oleg Merkuriev

Posts: 9
Registered: 12/27/16
Re: IDHTTP alternative?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 27, 2016 3:23 AM   in response to: Antonio Estevez in response to: Antonio Estevez
Sorry, I made a terrible mistype. I corrected my first message with the question. Please re-read it.

I'm looking for the alternative on winnt.h for Firemonkey. But using IDHTTP I haven't succeeded at all. The search function in official Indy documentation is so strange: http://www.indyproject.org/docsite/html

So if it's possible using IDHTTP how can I exactly
1) check if a client behind proxy or not (if a proxy authorization is necessary or not)
2) check the validity of a web-site SSL protocol

At least a hint to the section in official documentation is welcome. So far I can't find the exact information there. Thanks!

Edited by: Oleg Merkuriev on Nov 27, 2016 4:12 AM
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: IDHTTP alternative? [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 28, 2016 11:42 AM   in response to: Oleg Merkuriev in response to: Oleg Merkuriev
Oleg wrote:

1) check if a client behind proxy or not (if a proxy
authorization is necessary or not)

There is nothing in Indy specifically for that purpose, and certainly not
in TIdHTTP. But you can use Indy in general to manually implement any relevant
network discovery protocols you might need to find existing proxies.

2) check the validity of a web-site SSL protocol

The only way to do that is to attempt to connect to the website using HTTPS
and see if it succeeds or fails, if its SSL certificate validates OK, etc.

--
Remy Lebeau (TeamB)
Eli M

Posts: 1,346
Registered: 11/9/13
Re: IDHTTP alternative?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 4, 2016 6:36 AM   in response to: Oleg Merkuriev in response to: Oleg Merkuriev
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02