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 

idHTTP & REDIRECT = echec !

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





PostPosted: Mon Oct 27, 2003 9:57 pm    Post subject: idHTTP & REDIRECT = echec ! Reply with quote



Hi

I have a problem with a redirected url and indy 9

Its seem to be a know bug (i had see posts from 2000 with same problem)
but never corrected..

I explain... I post datas on a site (login&password) and site make 3
redirections
All are ok except the last one who need a ?param in url

idHTTP handle redirect until : http://site.com?params=xxx -> get error here
because idHTTP try to resolve "site.com?params=xxx" and not site.com and
passing params=xxx as parameters.

Anyone know how to do or a patch for this ? Thanks


Back to top
Ignacio Vazquez
Guest





PostPosted: Mon Oct 27, 2003 10:00 pm    Post subject: Re: idHTTP & REDIRECT = echec ! Reply with quote



"Pierre S." <nothanks (AT) sorry (DOT) com> wrote in message
3f9d9482$1 (AT) newsgroups (DOT) borland.com...
Quote:
idHTTP handle redirect until : http://site.com?params=xxx -> get error
here because idHTTP try to resolve "site.com?params=xxx" and not site.com
and passing params=xxx as parameters.

Anyone know how to do or a patch for this ? Thanks

The URL is malformed. It should be http://site.com/?params=xxx.

Cheers,
Ignacio

--
The strange part isn't so much that he had an accent. No accent was
detectable. It was just sounds and burbs and gurgles coming from him. He
was a like a chubby, old R2-D2.
- La Üter



Back to top
Pierre S.
Guest





PostPosted: Mon Oct 27, 2003 10:04 pm    Post subject: Re: idHTTP & REDIRECT = echec ! Reply with quote




Quote:
The URL is malformed. It should be http://site.com/?params=xxx.


I have used a trick for that ...

in event "Redirect" i have do :
If URL='site.com?params=xxx' then URL:='site.com/?params=xxx' but i get a
beautifull "session expired" .. Sad ... don't seem to work



Back to top
Félix GUILLEMOT
Guest





PostPosted: Thu Oct 30, 2003 4:40 pm    Post subject: Re: idHTTP & REDIRECT = echec ! Reply with quote

hello, i solved this like that :

procedure TDm01.IdHTTP1Redirect(Sender: TObject; var dest: String;
var NumRedirect: Integer; var Handled: Boolean;
var VMethod: TIdHTTPMethod);
var idURI : TidURI;
begin

VMethod := hmGet;

end;


"Pierre S." <nothanks (AT) sorry (DOT) com> a écrit dans le message de news:
3f9d9482$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi

I have a problem with a redirected url and indy 9

Its seem to be a know bug (i had see posts from 2000 with same problem)
but never corrected..

I explain... I post datas on a site (login&password) and site make 3
redirections
All are ok except the last one who need a ?param in url

idHTTP handle redirect until : http://site.com?params=xxx -> get error
here
because idHTTP try to resolve "site.com?params=xxx" and not site.com and
passing params=xxx as parameters.

Anyone know how to do or a patch for this ? Thanks





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.