Board index » delphi » HTTP.Get & Socket Error #11001

HTTP.Get & Socket Error #11001

I am using an Indy TIdHTTP component to retrieve a text file.  Formerly I
had this procedure working fine, but now I get #11001 after each .Get()
which I understand is "Host not found".

I set:
HTTP.Host <- I tried with and without in different formats
HTTP.Request.UserName
HTTP.Request.Password
and specify a correct URL for the .Get()

I tried an HTTP.Connect before the HTTP.Get and it connected with no error.
But the .Get operation always returns Socket Error #11001.

What can I be missing here?  I actually had it working a couple of weeks ago
and don't have a clue what might have changed.

-Johnnie

 

Re:HTTP.Get & Socket Error #11001


Solved by using my old reliable Argosoft Internet Mail Suite 2 components.

It doesn't look like I'll ever convert to Indy. I don't know if that's a
good thing or a bad thing.  Maybe just a different thing.

-Johnnie

Re:HTTP.Get & Socket Error #11001


"Johnnie Norsworthy" <jln2...@charter.net> wrote in
news:3d792122$1@newsgroups.borland.com:

Quote
> HTTP.Host <- I tried with and without in different formats
> HTTP.Request.UserName
> HTTP.Request.Password
> and specify a correct URL for the .Get()

For IdHTTP you dont filll in the host, just pass the URL.

Quote
> I tried an HTTP.Connect before the HTTP.Get and it connected with no
> error. But the .Get operation always returns Socket Error #11001.

You dont need to call connect either. HAve you looked at the demo?

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
      "Programming is an art form that fights back"

   Qualified help FAST with Indy Experts Support
   from the experts themselves:

      http://www.atozedsoftware.com/indy/support/

ELKNews - Get your free copy at http://www.atozedsoftware.com

Re:HTTP.Get & Socket Error #11001


Yes, I looked at the demo.

I tried with and without the .Host filled in.  I tried the .Host with the
login and password:  login:passw...@hot.com.  I tried leaving .Host and the
username and password empty and putting everything on the command line.  I
tried with and without .Connect.  I tried so many different things yesterday
that I eventually just tried the older software and it worked after a couple
of minutes.  I don't know why I couldn't make Indy work, but I didn't have
any more time to devote to trying.

I'm sure Indy works fine as I had it working once before during my initial
testing, but for some reason I couldn't make it work this time.

I can say that the Internet Mail Suite components I bought from ArgoSoft.com
ages ago have never let me down.  For those like me that don't need all of
those other functions that Indy provides I highly recommend it.

Thanks for the response and have a good weekend! :)

-Johnnie

Chad Z. Hower aka Kudzu wrote:
:: "Johnnie Norsworthy" <jln2...@charter.net> wrote in
:: news:3d792122$1@newsgroups.borland.com:
::: HTTP.Host <- I tried with and without in different formats
::: HTTP.Request.UserName
::: HTTP.Request.Password
::: and specify a correct URL for the .Get()
::
:: For IdHTTP you dont filll in the host, just pass the URL.
::
::: I tried an HTTP.Connect before the HTTP.Get and it connected with no
::: error. But the .Get operation always returns Socket Error #11001.
::
:: You dont need to call connect either. HAve you looked at the demo?
::
::
:: --
:: Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
::       "Programming is an art form that fights back"
::
::    Qualified help FAST with Indy Experts Support
::    from the experts themselves:
::
::       http://www.atozedsoftware.com/indy/support/
::
:: ELKNews - Get your free copy at http://www.atozedsoftware.com

Other Threads