Questions tagged [idhttp]

This is the Indy component for HTTP requests.

TIdHTTP is a component of the Internet Direct (aka "Indy") open source library for performing HTTP requests. The component can handle redirects, authentication, and data retrieval all by itself.

IO Handlers can be attached for SSL, streaming, or custom designed IO.

268 questions
0
votes
1 answer

delphi XE6 TIdHTTP.Get (Indy 10) memory consuption

I have this function function doHTTPRequest(const AUrl: String): String; // ------------------------------------------------------------------------ // return the response for a http request var aIdHTTP : TIdHTTP; begin Result := ''; …
ar099968
  • 6,963
  • 12
  • 64
  • 127
0
votes
1 answer

Delphi TIdHttp Post Json Error

I'm trying to make a post using the IdHttp, sending data in json format, except that in every way I tested gives error on the server, the same data has successfully submitted for testing POSTMAN tool strPost := '{...}'; //string json xUrlPost :=…
Jason-X
  • 39
  • 2
  • 11
0
votes
1 answer

Delphi TIdHttp freezes thread

I have an application that has multiple forms, each form has a thread that does a GET() on a given url every 3 seconds ... the problem is that every call of GET() the user interface freezes until the GET() be completed, and how are various forms…
Jason-X
  • 39
  • 2
  • 11
0
votes
1 answer

IdHTTP: EIdException ResponseCode (Colorize + Replace)

I have two problems here. So I need your help. The result of microsoft.com's response code is some time HTTP/1.1 403 Forbidden or HTTP/1.1 200 OK.` try { IdHTTP->Get("http://www.microsoft.com"); …
0
votes
1 answer

how do i save image and use them later in Idhttp

by Follow up to my previous question about update listview inside thread here i start to think in different way to get my previous question solved , because of download process takes too long and takes much bandwidth i want to download GIFimage…
MartinLoanel
  • 184
  • 3
  • 17
0
votes
1 answer

How do I get the source HTML for a page after executing its associated JavaScript?

there have been quiet a few posts on that issue but it seems none realy answer the question I have. I use TIdHttp to load the source code of this website: http://www.nationalgeographic.com/ I try to extract some data but realized that the data is…
David K.
  • 39
  • 9
0
votes
1 answer

idhttp - get response string while loading page

I need to get received string before page is loaded (to use with asterix http AMI events). So i am trying to access received string in OnWork event of idHttp, but I am getting error: var Form2: TForm2; s:TStringStream; procedure…
0
votes
2 answers

Some Problems of Indy 10 IdHTTP Implementation

In regard to Indy 10 of IdHTTP, many things have been running perfectly, but there are a few things that don't work so well here. That is why, once again, I need your help. Download button has been running perfectly. I'm using the following code…
0
votes
0 answers

TIdHTTP 10.6.2 Errors: Socket Error #11001 & #10051

I really need your help again. I trying to building a tiny download manager application by using TIdHTTP of Indy 10.6.2.5263 (shipped with XE8 Update 1) on C++ Builder XE8. But, I always get errors Socket Error #11001 - Host not found when the…
July Elizabeth
  • 105
  • 1
  • 11
0
votes
1 answer

Delphi: Stop a download using IdHttp and Thread

I have a thread defined THttpThread for downloading of a file. I would like to stop the download if modal form is closed or if Cancel button is pressed. In the example from bellow I got Access Violation probably because of the way how I reuse the…
REALSOFO
  • 852
  • 9
  • 37
0
votes
3 answers

Delphi: Issues during download of update file, with Indy (TidHttp)

Q1: Why during downloading process the modal form cannot be closed Q2: Why when download is finished the progress bar doesn't rich 100% (it's a manner of repaint?) Q3: Why if I stop and restart the connection to the web server during download the…
REALSOFO
  • 852
  • 9
  • 37
0
votes
2 answers

Delphi - make the Idhttp run in loop if return page not found error

How i can make the Idhttp run in loop if return 404 page not found the problem is 'GOTO CheckAgain' leads into or out of TRY statement label CheckAgain; begin CheckAgain: try idhttp.Get(sURL+WebFile[I], S); except on E:…
RepeatUntil
  • 2,272
  • 4
  • 32
  • 57
0
votes
1 answer

delphi - disconnect IdHTTP in the middle of long-poll request

I am implementing a live chat in my deplhi project, which receives new messages by doing GET request to the server. The server itself closes connection after 20 seconds if no new messages occur. Code discribed above is located in a separate thread…
lolbas
  • 794
  • 1
  • 9
  • 34
0
votes
1 answer

Delphi - indy send post using multiple IdHTTP in the same time

How can I send multiple post requests using TIdHTTP at the same time? lHTTP1.Post('http://'+cURL+'/build.php?',lParamList, ResponseContent); lHTTP2.Post('http://'+cURL+'/build.php?',lParamList,…
RepeatUntil
  • 2,272
  • 4
  • 32
  • 57
0
votes
1 answer

delphi post 'illegal access' error

I'm making some simple Delphi software using the IdHttp module in Indy. I want to access this page by using IdHttp's post function to open this webpage. Firstly I have to log in, (at http://user.buddybuddy.co.kr/Login/Login.asp), so I logged in,…
paul
  • 327
  • 1
  • 7
  • 24