# Trouble making HTTPS request from Delphi 7 client

**URL:** <https://community.fly.io/t/trouble-making-https-request-from-delphi-7-client/12992>\
**Category:** Questions / Help\
**Tags:** proxy, login-only\
**Created:** [May 19, 2023, 3:52pm UTC](https://community.fly.io/t/trouble-making-https-request-from-delphi-7-client/12992 "2023-05-19T15:52:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![francowerner](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/francowerner/32/13307_2.png) [@francowerner](https://community.fly.io/u/francowerner)\
**Post date:** [May 19, 2023, 3:52pm UTC](https://community.fly.io/t/trouble-making-https-request-from-delphi-7-client/12992/1 "2023-05-19T15:52:06Z")

</div>

I have a nodejs app deployed on [fly.io](http://fly.io) and it works as intended when making requests from javascript, postman, mobile devices, etc. The issue is i need to make POST/GET/PATCH requests from an older piece of software made with Delphi 7 but i cant get it to work. It can make HTTPS requests succesfully (it works with other services such as amazon SNS).  
Fly’s console returns “ **client problem: no host specified in headers or uri** ”. Ive read on [this post](https://community.fly.io/t/error-no-host-specified-in-headers-or-uri/9016) that its an HTTP version problem (it says there is no host on header params). I’m using HTTP 1.1, and i’ve logged the request im making on delphi and it **does have** the host header on the uri when its sent. Here is the code for delphi HTTP request:

````auto
type or paste code here
```var
  Source: TMemoryStream;
  Response: TStringStream;
  cbURL: String;
  cbMethod: integer;
  IdSSLIOHandlerSocketOpenSSL1: TIdSSLIOHandlerSocketOpenSSL;
begin
  IdSSLOpenSSLHeaders.Load;
  IdSSLIOHandlerSocketOpenSSL1:= TIdSSLIOHandlerSOcketOpenSSL.Create(Nil);
// IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvTLSv1;
// IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvSSLv2;
// IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvSSLv23;
  IdSSLIOHandlerSocketOpenSSL1.SSLOptions.Method := sslvSSLv3;

  cbURL:= 'https://myassistance-test.fly.dev/laya';
  cbMethod:= 1;
  Screen.Cursor := crHourGlass;
  try
    memoHTML.Clear;
    // Set the properties for HTTP
// HTTP.Request.Username := edUsername.Text;
// HTTP.Request.Password := edPassword.Text;
// HTTP.Request.ProxyServer := edProxyServer.Text;
// HTTP.Request.ProxyPort := StrToIntDef(edProxyPort.Text, 80);
    HTTP.Request.ContentType := 'application/x-www-form-urlencoded';
    //HTTP.Request.CustomHeaders.Values['Host']:= 'myassistance-test.fly.dev';
// HTTP.Request.Host:= 'myassistanceapi.fly.dev';
    HTTP.IOHandler := IdSSLIOHandlerSocketOpenSSL1;

````

What can i do? ive tried different delphi components without success, i shouldn’t have to since it works with other HTTPS calls. Delphi returns “ **Error connecting with SSL** ”. Ive tried many ssl certificate versions as well, and none of them work. I think i have v3 of ssl running on my fly instance but i didnt find a way to check if thats correct.

---

<div class="post-metadata">

**Author:** ![MatthewIngwersen](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@MatthewIngwersen](https://community.fly.io/u/MatthewIngwersen)\
**Post date:** [May 19, 2023, 4:49pm UTC](https://community.fly.io/t/trouble-making-https-request-from-delphi-7-client/12992/2 "2023-05-19T16:49:08Z")

</div>

Hi @francowerner. Regarding the SSL error: SSLv3 is _very_ old and is considered insecure. I believe that our edge proxy supports only TLS v1.2 (2008) and TLS v1.3 (2018), which are the latest two versions. I don’t know much about Delphi, but after quickly looking it up it seems like your library [might not enable a compatible TLS version by default](https://github.com/IndySockets/Indy/issues/181). Can you manually enable one?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/fly1/original/3X/6/e/6e8955d00cb218e186ebbe3a6ab06fefdce15290.svg) [@system](https://community.fly.io/u/system)\
**Post date:** [May 26, 2023, 4:49pm UTC](https://community.fly.io/t/trouble-making-https-request-from-delphi-7-client/12992/3 "2023-05-26T16:49:26Z")

</div>

Closed on May 26, 2023, 4:49pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
