Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

libpascurl.pas(625,24) Error: Identifier not found "sockaddr" #4

@Y-A-K-E

Description

@Y-A-K-E

IDE : lazarus 2.2.2 (FPC : 3.2.2)
OS : Win10

libpascurl.pas(625,24) Error: Identifier not found "sockaddr".

fix:

  curl_sockaddr = record
    family : Integer;
    socktype : Integer;
    protocol : Integer;
    addrlen : Cardinal;         { addrlen was a socklen_t type before 7.18.0 }
                                { but it turned really ugly and painful on the }
                                { systems that lack this type }
    addr : {$IFDEF FPC}{$IFDEF WINDOWS}TSockAddr{$ELSE}sockaddr{$ENDIF}
      {$ELSE IFDEF DCC32 OR IFDEF DCC64}Pointer{$ENDIF};
  end; 

but, HTTPS is not supported.

RemoteConnect.exe -a -e https://www.bing.com

(******************************************************************************)
(*                                 libPasCURL                                 *)
(*                 object pascal wrapper around cURL library                  *)
(*                        https://github.com/curl/curl                        *)
(*                                                                            *)
(* Copyright (c) 2019 - 2020                                Ivan Semenkov     *)
(* https://github.com/isemenkov/libpascurl                  ivan@semenkov.pro *)
(*                                                          Ukraine           *)
(******************************************************************************)
                                   Url: https://www.bing.com/
                        Redirect count: 0
                          Content type:
                          Content size: Unknown
                   Content buffer size: 0 B
                            Total time: 00:03:29.241000
                      Name lookup time: 00:00:07.322000
                          Connect time: 00:00:08.352000
         Time until the transfer start: 00:00:00.000000
                   Start transfer time: 00:00:00.000000
                          HTTP version: HTTP_UKNOWN
                         Response code: HTTP_STATUS_UNKNOWN
                           Header size: 0 B
                        Download speed: 0 B/s
                          Request size: 0 B
                        Request method: GET

-=== Content ===-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions