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 

Indy 10, Bug in TIdURI

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





PostPosted: Tue Nov 23, 2004 10:14 pm    Post subject: Indy 10, Bug in TIdURI Reply with quote



Hello. Who comment out this line in function URLDecode?:

ASrc := StringReplace(ASrc, '+', ' ', [rfReplaceAll]); {do not localize}

Since Indy 10 Files with spaces in Filename was not found with comment
out this line!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de


Back to top
Thomas Wegner
Guest





PostPosted: Wed Nov 24, 2004 8:25 pm    Post subject: Re: Indy 10, Bug in TIdURI Reply with quote



Do nobody understand my problem. I know, my english is
very bad. I can try to write it again.
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de

"Thomas Wegner" <tomaten (AT) t-online (DOT) de> schrieb im Newsbeitrag
news:41a3b657 (AT) newsgroups (DOT) borland.com...
Quote:
Hello. Who comment out this line in function URLDecode?:

ASrc := StringReplace(ASrc, '+', ' ', [rfReplaceAll]); {do not localize}

Since Indy 10 Files with spaces in Filename was not found with comment
out this line!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de




Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Nov 24, 2004 9:36 pm    Post subject: Re: Indy 10, Bug in TIdURI Reply with quote




"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote


Quote:
Hello. Who comment out this line in function URLDecode?:

Someone with the initials "S.G", as shown in the comments directly above
that line of code.

Quote:
Since Indy 10 Files with spaces in Filename was not found
with comment out this line!

Which Filename are you referring to? Please show your actual code that is
breaking.

Did you not read the comments directly above that line of code? That line
is intentionally commented out, the input to URLDecode() is not supposed to
include "+" encoded characters to begin with.


Gambit



Back to top
Thomas Wegner
Guest





PostPosted: Wed Nov 24, 2004 9:50 pm    Post subject: Re: Indy 10, Bug in TIdURI Reply with quote

Hello,

the problem is in TidHTTPServer. When i have a request like

http://www.server.com/path/abc+def.jpg

then i get ARequestInfo.Document = '/path/abc+def.jpg' in Indy 10.
The real filename was "abc def.jpg"! I can not find the file, because
you do not decode the "+" to space!

With Indy 9 this run fine!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a4fe6c$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a3b657 (AT) newsgroups (DOT) borland.com...

Hello. Who comment out this line in function URLDecode?:

Someone with the initials "S.G", as shown in the comments directly above
that line of code.

Since Indy 10 Files with spaces in Filename was not found
with comment out this line!

Which Filename are you referring to? Please show your actual code that is
breaking.

Did you not read the comments directly above that line of code? That line
is intentionally commented out, the input to URLDecode() is not supposed
to
include "+" encoded characters to begin with.


Gambit





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Nov 24, 2004 10:57 pm    Post subject: Re: Indy 10, Bug in TIdURI Reply with quote


"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote


Quote:
When i have a request like

http://www.server.com/path/abc+def.jpg

That is not a properly encoded request. It should have been this instead:

http://www.server.com/path/abc%20def.jpg

Please show your actual code for formatting and sending the request.

Quote:
With Indy 9 this run fine!

Indy 9 has the same line commented out in URLDecode().


Gambit



Back to top
Thomas Wegner
Guest





PostPosted: Wed Nov 24, 2004 11:08 pm    Post subject: Re: Indy 10, Bug in TIdURI Reply with quote

Borlands HTTPEncode do this with + and in
my Indy 9 the line was active.
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a51147$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a50213 (AT) newsgroups (DOT) borland.com...

When i have a request like

http://www.server.com/path/abc+def.jpg

That is not a properly encoded request. It should have been this instead:

http://www.server.com/path/abc%20def.jpg

Please show your actual code for formatting and sending the request.

With Indy 9 this run fine!

Indy 9 has the same line commented out in URLDecode().


Gambit





Back to top
Thomas Wegner
Guest





PostPosted: Thu Nov 25, 2004 12:26 am    Post subject: Re: Indy 10, Bug in TIdURI Reply with quote

Ok, i replace HTTPEncode/HTTPDecode. Now it
run fine.
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a51147$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a50213 (AT) newsgroups (DOT) borland.com...

When i have a request like

http://www.server.com/path/abc+def.jpg

That is not a properly encoded request. It should have been this instead:

http://www.server.com/path/abc%20def.jpg

Please show your actual code for formatting and sending the request.

With Indy 9 this run fine!

Indy 9 has the same line commented out in URLDecode().


Gambit





Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Thu Nov 25, 2004 12:43 am    Post subject: Re: Indy 10, Bug in TIdURI Reply with quote


"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote


Quote:
Ok, i replace HTTPEncode/HTTPDecode. Now it run fine.

Why are you encoding manually at all?


Gambit



Back to top
Thomas Wegner
Guest





PostPosted: Thu Nov 25, 2004 1:06 am    Post subject: Re: Indy 10, Bug in TIdURI Reply with quote

I develop two large Indy/EWF Applications that create
many many HTML-Code Wink
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a52b7b$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a526ba (AT) newsgroups (DOT) borland.com...

Ok, i replace HTTPEncode/HTTPDecode. Now it run fine.

Why are you encoding manually at all?


Gambit





Back to top
Thomas Wegner
Guest





PostPosted: Thu Nov 25, 2004 1:21 am    Post subject: Re: Indy 10, Bug in TIdURI Reply with quote

If i do this not, i have many problems with files
with special language chars in filename. You never
known, what the customer do. Smile
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://www.wegner24.de

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> schrieb im Newsbeitrag
news:41a52b7b$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Thomas Wegner" <tomaten (AT) t-online (DOT) de> wrote in message
news:41a526ba (AT) newsgroups (DOT) borland.com...

Ok, i replace HTTPEncode/HTTPDecode. Now it run fine.

Why are you encoding manually at all?


Gambit





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.