http://digital-flame.ru/

# Class THTTPRequests2

Description | Hierarchy | Fields | Methods | Properties

## Unit

uHTTPRequests2

## Declaration

`type THTTPRequests2 = class(TDataModule)`

## Description

MyUnits IdSSL, IdSSLOpenSSL

## Hierarchy

- TDataModule
- THTTPRequests2

## Overview

### Methods

| `constructor Create(Aowner:TComponent); override;`
| `procedure IsFileOnServer( AFileName:string; AdirOnServer: string; var AMyServerResponse: string);`
| `function IsHTTPConnectionOk(var Error:string; var ResponseText:string ):boolean;`
| `procedure SendOneFile(Filepath:string; dirOnServer:string; var StandartServerResponse:string; var MyServerResponse:string); overload;`
| `procedure SendOneFile(Filepath:string; dirOnServer:string; FileNameOnServer:string); overload;`
| `procedure SendManyFiles(FilepathesSL:TStringList; dirOnServer: string);`
| `procedure SendManyFiles2(AbsDirOnClient, AbsDirOnServer: string);`
| `procedure SendChunksInfo(AChunksDir, AChunksDirOnServer: string;AFileSize:int64);`
| `procedure SendChunksInfoInFile(AChunksDir, AchunksDirOnServer: string; AFileSize: int64;ChunksInfoFileName:string);`
| `procedure CheckChunksIntegrity(AdirOnServer:string; var AMyServerResponse:string;AChunksInfoFileName:string);`
| `procedure CreateDirOnServer(dir:string;MyServerResponse:string);`
| `procedure CreateCurrentDayDirOnServer;`
| `procedure CreateCurrentDayDirThumbsOnServer;`
| `procedure CreateTempFolderForFileChunks(Filename: string);`
| `procedure DeleteDirOnServer(dir: string;MyServerResponse:string);`
| `procedure DeleteTempFolderForFileChunks(Filename: string);`
| `procedure DeleteFileOnServer(AFilePath, AMyServerResponse: string);`
| `procedure GatherFileFromChunks(AChunksDir:string; AOutPutDir:string; AOutPutFileName:string);`
| `procedure SendPostParamsForTest;`

## Description

### Methods

| `constructor Create(Aowner:TComponent); override;`
Public declarations

| `procedure IsFileOnServer( AFileName:string; AdirOnServer: string; var AMyServerResponse: string);`

| `function IsHTTPConnectionOk(var Error:string; var ResponseText:string ):boolean;`

| `procedure SendOneFile(Filepath:string; dirOnServer:string; var StandartServerResponse:string; var MyServerResponse:string); overload;`
Sending One File to Server and Putting to some Dir; dirOnServer is dir on Server to Put File relatively to HTTPServer.exe

| `procedure SendOneFile(Filepath:string; dirOnServer:string; FileNameOnServer:string); overload;`

| `procedure SendManyFiles(FilepathesSL:TStringList; dirOnServer: string);`
Sending many files and putting them to dirOnSerer dirOnServer is dir on Server to Put File relatively to HTTPServer.exe

| `procedure SendManyFiles2(AbsDirOnClient, AbsDirOnServer: string);`
Sending many files and putting them to dirOnSerer dirOnServer is dir on Server to Put File relatively to HTTPServer.exe dirOnClient is the dir where chunks are

| `procedure SendChunksInfo(AChunksDir, AChunksDirOnServer: string;AFileSize:int64);`
Gathering and Sending chunks info on Server in String - doesn't worl well

| `procedure SendChunksInfoInFile(AChunksDir, AchunksDirOnServer: string; AFileSize: int64;ChunksInfoFileName:string);`
Gathering and Sending chunks info on Server in File

| `procedure CheckChunksIntegrity(AdirOnServer:string; var AMyServerResponse:string;AChunksInfoFileName:string);`
this method will read ChunksInfo.txt on Server in dirOnServer and will check if all chunks are on Server

| `procedure CreateDirOnServer(dir:string;MyServerResponse:string);`
creates dir on Server Relatively to HTTPServer.exe

| `procedure CreateCurrentDayDirOnServer;`

| `procedure CreateCurrentDayDirThumbsOnServer;`

| `procedure CreateTempFolderForFileChunks(Filename: string);`

| `procedure DeleteDirOnServer(dir: string;MyServerResponse:string);`

| `procedure DeleteTempFolderForFileChunks(Filename: string);`

| `procedure DeleteFileOnServer(AFilePath, AMyServerResponse: string);`
Delete File On Server

| `procedure GatherFileFromChunks(AChunksDir:string; AOutPutDir:string; AOutPutFileName:string);`

| `procedure SendPostParamsForTest;`

Generated by PasDoc 0.14.0.