Board index » delphi » Cgi works on D5 but not in D6 ????

Cgi works on D5 but not in D6 ????

Hi

I can not make my cgi 's (not win cgi) work in delphi 6
the code works perfect in D5

procedure TWebModule1.WebModule1WebActionItem1Action(Sender: TObject;
  Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
begin
  response.Content:='KIM';
  handled:=true;
end;
but nothing is returned to the browser.

If I do not set the webmodule default to true then it do not call the action
at all.

why does D6 property ex. pathinfo allways says unknown(and show a
dropdownbox) , even when it set to a value
 (can see value in other window called "editing webmodule1.action")

TIA
Kim Pedersen

 

Re:Cgi works on D5 but not in D6 ????


Quote
> procedure TWebModule1.WebModule1WebActionItem1Action(Sender: TObject;
>   Request: TWebRequest; Response: TWebResponse; var Handled: Boolean);
> begin
>   response.Content:='KIM';
>   handled:=true;
> end;
> but nothing is returned to the browser.

> If I do not set the webmodule default to true then it do not call the
action
> at all.

Mmm - is this your only action in this module ? ... if so, you either must
set it to
default, or give it a path string property, and then call that path string
in the url afair.

hth,

/A.

Re:Cgi works on D5 but not in D6 ????


Hi

Quote
> Mmm - is this your only action in this module ? ... if so, you either must
> set it to
> default, or give it a path string property, and then call that path string
> in the url afair.

I have tried with one or more actions using the Path string, Everything
works in D5 , but not in D6

regards
Kim PEdersen

Re:Cgi works on D5 but not in D6 ????


Can you put a sample to the binaries group so we can test it and see what is
going false? I use many CGI apps build with D6 and no problems. All works
fine.

Rolf

<k...@macaos.com> schrieb im Newsbeitrag news:3d4e515b_1@dnews...

Quote
> Hi

> > Mmm - is this your only action in this module ? ... if so, you either
must
> > set it to
> > default, or give it a path string property, and then call that path
string
> > in the url afair.

> I have tried with one or more actions using the Path string, Everything
> works in D5 , but not in D6

> regards
> Kim PEdersen

Re:Cgi works on D5 but not in D6 ????


Strange !!

When I startet making the example for you , it suddenly works ??
Ok , I had restarted delphi between , but still .
Sorry for taking your time , but now it works !!

By the way for another time  This binaries group ,is it this
borland.public.attachments you mean ??

thanks for your time
Kim Pedersen

"Rolf Frei" <r...@eicom.ch> skrev i melding news:3d4e6ee5_1@dnews...

Quote
> Can you put a sample to the binaries group so we can test it and see what
is
> going false? I use many CGI apps build with D6 and no problems. All works
> fine.

> Rolf

> <k...@macaos.com> schrieb im Newsbeitrag news:3d4e515b_1@dnews...
> > Hi

> > > Mmm - is this your only action in this module ? ... if so, you either
> must
> > > set it to
> > > default, or give it a path string property, and then call that path
> string
> > > in the url afair.

> > I have tried with one or more actions using the Path string, Everything
> > works in D5 , but not in D6

> > regards
> > Kim PEdersen

Other Threads