Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 08 19:00

    Fulgan on Restructure

    Bug fix for a typo in TIdIMAP4.… (compare)

  • Oct 08 19:00

    Fulgan on master

    Bug fix for a typo in TIdIMAP4.… (compare)

  • Oct 02 21:00

    Fulgan on Restructure

    Updating TIdIMAP4's InternalSea… (compare)

  • Oct 02 21:00

    Fulgan on master

    Updating TIdIMAP4's InternalSea… (compare)

  • Sep 20 21:50

    Fulgan on master

    Embarcadero patch for race cond… (compare)

  • Sep 20 21:50

    Fulgan on Restructure

    Embarcadero patch for race cond… (compare)

  • Sep 10 18:50
    rlebeau closed #268
  • Sep 10 18:50
    rlebeau commented #268
  • Sep 10 18:50

    Fulgan on Restructure

    Fix for TIdResponseHeaderInfo.S… (compare)

  • Sep 10 18:50

    Fulgan on master

    Fix for TIdResponseHeaderInfo.S… (compare)

  • Sep 10 18:49
    rlebeau labeled #268
  • Sep 10 18:49
    rlebeau labeled #268
  • Sep 10 18:49
    rlebeau assigned #268
  • Sep 10 18:49
    rlebeau review_requested #268
  • Sep 09 13:15
    gjdoornink opened #268
  • Aug 28 21:00

    Fulgan on Restructure

    Setting TIdSSLIOHandlerSocketBa… (compare)

  • Aug 28 21:00

    Fulgan on master

    Setting TIdSSLIOHandlerSocketBa… (compare)

  • Aug 28 19:42
    rlebeau milestoned #183
  • Aug 28 19:42
    rlebeau demilestoned #183
  • Aug 28 19:42
    rlebeau assigned #183
Matthijs ter Woord
@mterwoord
so, ask away, and someone will try to answer
shirangold
@shirangold
I wanted to know if indy can implement async connection
Matthijs ter Woord
@mterwoord
Not sure.. :)
will try to get some of the guys to answer..
:)
shirangold
@shirangold
ok, tnx!!
Kudzu
@czhower
define what you mean by async connection (people often dont understand what they are asking for) and why you want to implement async.
Wil32
@Wil32
Hello, anyone managed to use tls1_2 with android 6.0?
Remy Lebeau
@rlebeau
In Android 6, Google no longer supports OpenSSL, they have replaced it with BoringSSL, which Indy does not support yet. To continue using OpenSL, you have to deploy the two OpenSSL libraries yourself with your app .
Wil32
@Wil32
was anyone successful doing that?
Remy Lebeau
@rlebeau
Not that I know of. Some have tried, but for unknown reasons OpenSSL's libcrypto.so is failing to load on Android 6 when Indy tries to load it into memory. BoringSSL's libcrypto.so loads fine, but is missing various exports that Indy uses. I have started working on making Indy not fail on those particular exports, but it will take some time for me to finish that update.
there is a ticket on Indy's CodePlex issue tracker for this issue: https://indy.codeplex.com/workitem/64884
Adrien
@amorel-ljsl
Hi, using TIdEchoUDP, is it a feature that echoing a hostname returns empty string while echoing an IP correctly returns the test string i sent? Thank you
Remy Lebeau
@rlebeau
A hostname is resolved to an IP before any data is exchanged. You could get a blank string returned if either 1) you are echoing a blank string to begin with, 2) no reply is received from the server within the ReceiveTimeOut period (infinite by default), or 3) the hostname resolves to an IP that the echo request cannot reach.
Adrien
@amorel-ljsl
Hi Remy, thank you for answering. However i think the problem finally lies somewhere else, because i get blank response from echo although domain is correctly resolved (checked it with right breakpoints). Whenever i ping my local machine i get an answer, but whatever i ping outside my machine (local network or internet) returns a blank string...
That's exactly what i cover in my post here: http://forums2.atozed.com/viewtopic.php?f=7&t=26953
I'm sure i miss something obvious, but i cannot figure out what
Adrien
@amorel-ljsl
Try that: new project, drop a TIdEchoUDP, a label and a button. On IdEchoUDP1 set "google.com" as host, active to true, and ReceiveTimeout to 5000. In Button1.OnClick, i call IdEchoUDP1.echo('test') and assign the result to Label1.Caption. It's an empty string...
It's important to note that it times out. That may be the explanation: it probably never gets the answer from the host, thus explaining the empty string
Remy Lebeau
@rlebeau
google.com does not run an echo server. Echo is an actual protocol. You are confusing echo with ping, which is implemented in Indy using TIdICMPClient (ping is a type of ICMP request).
Adrien
@amorel-ljsl
Remy, that's exactly what i successfully figured out last night :( I was completely mistaken! So i created a thread, and there i create a TIdICMPClient, using its "ping" method. It works much better! Thank you :)
Remy Lebeau
@rlebeau
just be aware that TIdIcmpClient uses a RAW socket internally, and RAW sockets are restricted to admin users on most platforms, so your app/thread needs to run with elevated privileges. Otherwise, try looking at platform-specific APIs that are not restricted to admins, like Win32's IcmpSendEcho().
sandy771
@sandy771
This message was deleted

I am having a problem with HTTP GET and UTF-8 (Builder XE3 - Indy 10.5.9.0)

I use the following code:

String text = String(u"قفز الثعلب البني السريع فوق الكلب الكسول");
url = "https://www.googleapis.com/language/translate/v2/detect?key=xxxxxxxxxxxxxxx&q=" + text;
url = TIdURI::URLEncode(url);
try
{
IdHTTP1->IOHandler->DefStringEncoding = TIdTextEncoding_UTF8;
IdHTTP1->Request->ContentType = "text/plain; charset=UTF-8";
IdHTTP1->Get(url, strm);
...

When Executed in my application I get an exception - HTTP/1.0 400 Bad Request

If I copy and paste the TIdURI encoded URL (Arabic encoded as hex) into a browser all works OK.

Any ideas?

sandy771
@sandy771
dont worry thanks sorted
KristyJone
@KristyJone
I want to check my ip. using the code but 100% report EIdhttpTimeout. Whatever change the server like http://checkip.dyndns.org/ or http://www.trackip.net/ip , switch of AV and firewall... "TIMEOUT" forever. Any hint for me? Tempstr := CommonLib.IdHTTP1.Get('http://ipinfo.io/ip');
KristyJone
@KristyJone
Ok. Forget my question above. I found that using Indy application would not let firewall to ask permit. But intraweb would. I know every firewall are using differ method. Is that a way to let firewall ask for permission?
Kudzu
@czhower
There is no std way, each firewall has its own methods.
Remy Lebeau
@rlebeau
TIdHTTP.Get() is an outbound connection to an external server, so any decent firewall should ask for permission, if configured to do so.
aaramhcc
@aaramhcc
Hi, I have a question about indy 10 and delphi7 , I upgraded indy in delphi7 ,now I need to know is there any way to use indy for REST services
if yes, is there any sample ?
I have to use dephi7
Matthijs ter Woord
@mterwoord
client or server side?
aaramhcc
@aaramhcc
client
Matthijs ter Woord
@mterwoord
i'd say you can, just not sure how hard/easy it is to encode the payloads
rest is very simple http calls
aaramhcc
@aaramhcc
thnx for replying
my problem is I never used indy ,I don't have any sample and I could n't find any sample for such calling
Matthijs ter Woord
@mterwoord
find any GET or POST sample for indy
rest is more a mindset than it is a definition of the actual content
ie, the content format used by your rest service could be as simple as csv files being transferred, or as complex as xml documents, etc
aaramhcc
@aaramhcc
thank you very much
bilgisyr
@bilgisyr
is there a solution for Andorid 6 Openssl problem? SLL with IndySocket on Android Marsmallow edition doesnt work?
Remy Lebeau
@rlebeau
Indy does not yet support Android 6's native BoringSSL replacement for OpenSSL. Work in progress. In the meantime, you would have to deploy standard OpenSSL .so files with your app and tell Indy to use them instead.
I did check in some changes last night for BoringSSL, but have not done any tests yet. Don't know if more changes are needed. Google has a document that outlines how to port OpenSSL code to BoringSSL, but I haven't looked to see how it will affect Indy
bilgisyr
@bilgisyr
thank you rlebeau for fast answer.
ivanlorenzetti
@ivanlorenzetti
Hi!
Some one could help me?
I use a program WISCP to tranfer a file to my server.
Matthijs ter Woord
@mterwoord
and?
Hi :)
ivanlorenzetti
@ivanlorenzetti
I am sorry. Hi