 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Bolla Sandor Guest
|
Posted: Tue Nov 18, 2003 1:38 pm Post subject: get XML with IDHHTP.Get(URL; TStream); |
|
|
Hallo There!
I am looking for a solution to catch (get) an XML file generated wiht PHP on
a website, but as I tried to use streaming then I got the error message
(Socket error #10061)?
Can I use TFilestream also, because my first tries to load a simple 'OK'
string by this PHP script I got the same problem, without using the stream
function I didn't had problems!!!
Bolla Sándor
Hungary
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Nov 18, 2003 7:29 pm Post subject: Re: get XML with IDHHTP.Get(URL; TStream); |
|
|
"Bolla Sandor" <xo3 (AT) freemail (DOT) hu> wrote
| Quote: | I got the error message (Socket error #10061)?
|
WSAECONNREFUSED
(10061)
Connection refused.
No connection could be made because the target machine actively refused
it. This usually results from trying to connect to a service that is
inactive on the foreign host - i.e. one with no server application running.
That error has nothing to do with your ability to read XM nor not. That
error means that your socket can't connect to the server to begin with.
Double-check that your URL (hostname and port) is accurate and that you have
a valid internet connection available.
| Quote: | Can I use TFilestream also
|
Yes.
| Quote: | because my first tries to load a simple 'OK' string by this PHP
script I got the same problem, without using the stream function
I didn't had problems!!!
|
Please should your actual code. Whether you use a stream or not is
irrelevant to the operation of the component. If you don't use your own
response stream, the component is going to use its own anyway, so the same
functionality is invoked one way or another.
Gambit
|
|
| Back to top |
|
 |
eshipman Guest
|
Posted: Tue Nov 18, 2003 7:46 pm Post subject: Re: get XML with IDHHTP.Get(URL; TStream); |
|
|
In article <3fba7232$1 (AT) newsgroups (DOT) borland.com>, "Remy Lebeau (TeamB)"
<gambit47.no.spam (AT) no (DOT) spam.yahoo.com> says...
| Quote: |
"Bolla Sandor" <xo3 (AT) freemail (DOT) hu> wrote in message
news:3fba20c5 (AT) newsgroups (DOT) borland.com...
I got the error message (Socket error #10061)?
WSAECONNREFUSED
(10061)
Connection refused.
No connection could be made because the target machine actively refused
it. This usually results from trying to connect to a service that is
inactive on the foreign host - i.e. one with no server application running.
That error has nothing to do with your ability to read XM nor not. That
error means that your socket can't connect to the server to begin with.
Double-check that your URL (hostname and port) is accurate and that you have
a valid internet connection available.
SNIP |
Remy...FYI...
I've actually seen some servers DENY any connection from Indy components
due to the UserAgent. Try opening this URL with a dropped idHTTP:
[url]http://www.imdb.com/Tsearch?title=The+Rookie+(2002)&restrict=Movies+only[/url]
{BTW, I am in this movie, I am the catcher in the oilfield scene}
You'll get a 403. Forbidden...
Request.User = 'Mozilla/3.0 (compatible; Indy Library)'
Now, if I make the UserAgent = 'Mozilla/3.0'
It works...I have taken to removing ALL mentions of Indy in any of the
components especially HTTP, POP3 and SMTP.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|