| View previous topic :: View next topic |
| Author |
Message |
Pierre S. Guest
|
Posted: Mon Oct 27, 2003 9:57 pm Post subject: idHTTP & REDIRECT = echec ! |
|
|
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
|
Posted: Mon Oct 27, 2003 10:00 pm Post subject: Re: idHTTP & REDIRECT = echec ! |
|
|
"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
|
Posted: Mon Oct 27, 2003 10:04 pm Post subject: Re: idHTTP & REDIRECT = echec ! |
|
|
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" .. ... don't seem to work
|
|
| Back to top |
|
 |
Félix GUILLEMOT Guest
|
Posted: Thu Oct 30, 2003 4:40 pm Post subject: Re: idHTTP & REDIRECT = echec ! |
|
|
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 |
|
 |
|