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

Animate TAnimate while IdHTTP.Post is working in the background?

With Delphi XE2, how can I play/update a TAnimate animation while a TIdHTTP object is working in the background? For example, I have IdHTTP1.Post waiting for this PHP "app" on a remote server to complete:
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
1 answer

How get URL after using idhttp post

I'm using idhttp to get content of a site. After get the content, the site will change URL from www to www8 or www9 or www10, for example: www.sample.com is before posting, after posting it will be www10.sample.com. How to get it? Thank you.
0
votes
2 answers

IdHTTP.Put Error: HTTP/1.1405 Method Not Allowed

In Delphi XE2, I am trying to upload the lines of a memo to a file on my webspace with IdHTTP.Put: procedure TForm1.btnUploadClick(Sender: TObject); var StringToUpload: TStringStream; begin StringToUpload := TStringStream.Create(''); try …
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
1 answer

What is the correct encoding for Indy Tidhttp for posting XML Files?

I notice I have invalid characters for XML files in an application who use Indy Client (I actually use default parameters for IdHttp) Here is my code : ts := TStringList.Create; try ts.Add('XML=' + AXMLDoc.XML.Text)); HTTPString :=…
Hugues Van Landeghem
  • 6,755
  • 3
  • 34
  • 59
0
votes
1 answer

HTTP.post versus downloadURL using Delphi XE2

I am trying to use the same procedure for two types of downloads. both are working. I would like to use TDownloadURL or HTTP.Post on both, but cannot determine how. Which method and how to do this? Thank you. First operation -- procedure…
kualoa
  • 17
  • 1
  • 4
0
votes
3 answers

Delphi, using idhttp to automate submit button

Assuming I have internet browsers like mozilla and iexplorer, so, I used mozilla and I have already logon to a website using my account username and password logged in, well idhttp can post(submit form, automated click) to the already opened…
XenKid
  • 161
  • 3
  • 16
0
votes
1 answer

Using IdHTTP to send array of bytes to a PHP

I am trying to build a simple client - server - client application using the IdHTTP component. How to use IdHttp component to send array of bytes from a client1 to a php file located on www.example.com and have this php file send the same data to be…
user1593881
0
votes
1 answer

destructor when stopping idhttp.get ( indy, delphi)

My application can download one picture from every url in memo1. It uses idhttp.get and has a skipbutton. After skip it downloads the next picture. Q1: Do you have code to put into the destructor and what is the code for " terminate" and…
0
votes
1 answer

IdHTTP XML, getting xml, help please

I can not get through IdHTTP XML document from the site. I always had the answer 403 / HTTP 1.1 and text/html (need text/xml) When using MSXML all well and getting XML file. But I need a proxy, so need idhtop. When using the synapse does not…
0
votes
1 answer

IdHTTP.Get not waiting for answer

I'm having some problems with the Idhttp.Get method. I thought it's by default working in blocking-mode(wait for the answer to go to next line), but I just saw it's not waiting for the answer to go to another line. I'm using it with threads, but I…
HwTrap
  • 303
  • 1
  • 3
  • 14
0
votes
0 answers

IdHTTP.Get stop execution

I'm developing a .dll file (to be more specific a Browser Helper Object - BHO). And I need to receive some settings hosted in one TXT file. To read this TXT file, I'm using IdHTTP, but when I do .get into the TXT address, it just stop everything.…
HwTrap
  • 303
  • 1
  • 3
  • 14
-1
votes
1 answer

Indy error in Delphi 7: Undeclared identifier: 'hoWantProtocolErrorContent'

When using TIdHTTP to send GET commands with JSON variables, sometimes the server returns me the error below: HTTP/1.1 500 Internal Server Error Using Insomnia for testing JSON results, I see an entire JSON response and a pretty response which…
Tractnet
  • 3
  • 2
-1
votes
1 answer

Delphi - TIdHTTP freezes when POSTing data

I have an issue developing an HTTP client using Indy's TIdHTTP component. I'm using Indy 10.5.9.0. When I call the TIdHTTP.DoRequest() method, the component freezes, and raises an exception: Connection closed gracefully I already tried using the…
pedro.olimpio
  • 1,478
  • 2
  • 22
  • 43
-1
votes
1 answer

Error to check my Noip uploaded in a host (as txt file content)

I have a txt uploaded in my site where the content of this txt file is my Noip address that must be consulted by a http request. The trouble in my code below is that if this file was removed of site, is generated a exception and not is possible…
user7649139
-1
votes
1 answer

Character encoding error in idHTTP

I'm having a situation with TIdHTTP and TIdMultipartFormDataStream. My code is: FormPHP := TIdMultiPartFormDataStream.Create; FormPHP.AddFile('imagem',AImagem,'image/jpeg'); FormPHP.AddFormField('iduser',AIDUser,'text/plain'); …
wordermorr
  • 315
  • 1
  • 4
  • 13
1 2 3
17
18