BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

No comments :-)))

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Michael
Guest





PostPosted: Sun Dec 21, 2003 12:29 pm    Post subject: No comments :-))) Reply with quote



When I download pages (I use standard Indy Http Client) I don't
have in source of this page comments, for example:
- page:
http://www.google.pl/search?q=jvcl+delphi+download&ie=UTF-8&oe=UTF-8&hl=pl&btnG=Szukaj+z+Google&lr=
-I don't have comments <!--a-->, <!--m--> ...
I need comments, what I must do?

--
Michał Gurgul
Back to top
Michael
Guest





PostPosted: Sun Dec 21, 2003 7:48 pm    Post subject: Re: No comments :-))) Reply with quote



Hi,

Quote:
When I download pages (I use standard Indy Http Client) I don't
have in source of this page comments, for example:

Slightly off topic reply but still.

I recommend you check out the ICS component suite by Francois Piette:

http://overbyte.delphicenter.com/frame_index.html

The components are freeware with source and they are in my experience much
more reliable than Indy. They correctly support multithreading and allow you
to create arbitrary TCP and UDP based clients and servers. Several
"finished" client and server components are included (ftp, http, finger ...)
so that you can create your own web server or ftp client with literally a
few lines of code.

I used ICS in several major projects for commercial clients, and never had
any problems with it. Very high quality code.

/Michael
www.hyperpal.com


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Dec 22, 2003 12:32 am    Post subject: Re: No comments :-))) Reply with quote




"Michael" <misthebear (AT) wp (DOT) pl> wrote

Quote:
When I download pages (I use standard Indy Http Client) I
don't have in source of this page comments

What exactly are you referring to? Please show an actual example of what
you expect to find. When you download a page with TIdHTTP, it downloads
as-is whatever the HTTP server actually transmits . So if there are no
comments, then the server didn't send them to begin with.


Gambit



Back to top
Marco Caspers
Guest





PostPosted: Mon Dec 22, 2003 8:09 am    Post subject: Re: No comments :-))) Reply with quote

Remy Lebeau (TeamB) wrote:

Quote:

"Michael" <misthebear (AT) wp (DOT) pl> wrote in message
news:3fe59230$1 (AT) newsgroups (DOT) borland.com...
When I download pages (I use standard Indy Http Client) I
don't have in source of this page comments

What exactly are you referring to? Please show an actual example of
what you expect to find. When you download a page with TIdHTTP, it
downloads as-is whatever the HTTP server actually transmits . So if
there are no comments, then the server didn't send them to begin with.

That depends a bit. If there's a redirect in there, it won't show you
anything. You'll get an error message if you don't turn it on in
TIdHTTP.

On the other hand the URL shown is a dynamic URL, you might get an
'Object Moved' error, or simply a 404.

Back to top
Michael
Guest





PostPosted: Mon Dec 22, 2003 12:11 pm    Post subject: Re: No comments :-))) Reply with quote

Dnia 2003-12-22 01:32, Użytkownik Remy Lebeau (TeamB) napisał:
Quote:
Please show an actual example of what
you expect to find. When you download a page with TIdHTTP, it downloads
as-is whatever the HTTP server actually transmits . So if there are no
comments, then the server didn't send them to begin with.

Sorry!
I look on source on Mozilla when I have comments, but in IE/Opera I
don't have comments. I don't know what it depens for...

Mozilla browser page source view:

<p class=g><!--m--><a
href=http://sourceforge.net/projects/jvcl/>SourceForge.net: Project Info
- JEDI VCL for Delphi</a>
<font size=-1> ...
Programming Language: Delphi/Kylix, Object Pascal; Topic
... Development. Project UNIX


IE/Opera browser page view:

<p class=g><a
href=http://sourceforge.net/projects/jvcl/ onmousedown="return
clk(1,this)">SourceForge.net: Project Info - JEDI VCL for
Delphi</a>
<font size=-1> ... Programming Language:
Delphi/Kylix, Object Pascal; Topic ... Development. Project
UNIX


--
Michał Gurgul










Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Dec 22, 2003 7:13 pm    Post subject: Re: No comments :-))) Reply with quote


"Marco Caspers" <*nospam*@haxor.vaxor.com> wrote


Quote:
That depends a bit. If there's a redirect in there, it won't
show you anything.

If a redirect occurs, an exception will occur unless you have the
HandleRedirects property set to true. If it is set to true, however, then
the TIdHTTP will automatically redirect itself to the specified location,
and eventually it will the actual content of the requested resource,
whereever it happens to reside, unless another error occurs.


Gambit



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Mon Dec 22, 2003 7:15 pm    Post subject: Re: No comments :-))) Reply with quote


"Michael" <misthebear (AT) wp (DOT) pl> wrote


Quote:
I look on source on Mozilla when I have comments, but in
IE/Opera I don't have comments. I don't know what it depens for...

It is possible, and probably likely based on what you have described, that
the server itself is detecting which actual browser is being used, and then
sending back different content for different browsers. If that is the case,
then you will have to adjust the TIdHTTP's UserAgent property to match that
of whichever browser you want to imitate so that you will get the desired
content.


Gambit



Back to top
Michael
Guest





PostPosted: Tue Dec 23, 2003 5:35 pm    Post subject: Re: No comments :-))) Reply with quote

Dnia 2003-12-22 20:15, Użytkownik Remy Lebeau (TeamB) napisał:
Quote:
It is possible, and probably likely based on what you have described, that
the server itself is detecting which actual browser is being used, and then
sending back different content for different browsers. If that is the case,
then you will have to adjust the TIdHTTP's UserAgent property to match that
of whichever browser you want to imitate so that you will get the desired
content.

I write in UserAgent property:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b)
and all is ok!

Thanks

Michał Gugrul

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.