Are there any IIS settings which affect mtPost ?????
TIA
Stephen Bertram
--
Ronaldo Ferraz
(Do not email me directly unless asked)
"Stephen Bertram" <step...@timedisciple.com> wrote in message
news:8m51cv$so...@bornews.borland.com...
if (Request.MethodType = mtGet) or ((Request.MethodType = mtAny) and
(Request.method = 'GET')) then
req.commatext := Request.QueryFields.commatext
else
req.commatext := Request.ContentFields.commatext;
This app works on all other servers I've run it on - the same client gets
the correct response from the app on one server while on the problem server
the request contents are reported as nil.
Any ideas ??
Stephen
Ronaldo Melo Ferraz <NsOhSe...@taskmail.com.br> wrote in message
news:8m7qbm$qp...@bornews.borland.com...
--
Ronaldo Ferraz
(Do not email me directly unless asked)
"Stephen Bertram" <step...@timedisciple.com> wrote in message
news:8m7spu$qp...@bornews.borland.com...
Using the CGI code in the previous post to receive the data fields posted
from a form, I normally can change the method in the <FORM..> tag from GET
to POST with no problem - the CGI app uses QueryFields or ContentFields
depending on the Request.MethodType. My HTML is normally coded to use the
POST method for 2 reasons - the location edit box is tidier and it allows
transfers of string data > 255 characters.
On all but 1 of the servers this app is installed on this works perfectly.
On this one server, data is received only when the form method is GET.
A test HTML form like demonstrates this problem :
<HTML><BODY>
<FORM ACTION="/cgi-bin/td.cgi" METHOD="GET">
<INPUT TYPE="HIDDEN" NAME="DATA_PAGE" VALUE="TEST_PAGE">
Enter Data Here <INPUT TYPE="TEXT" NAME="DATA_FIELD" SIZE="20">
<br> <br>
and Click Here <INPUT TYPE="SUBMIT">
</FORM>
</BODY></HTML>
That always works. Change the GET to POST and it works on all but 1 of my
installations. On that server using POST results in
Request.ContentFields.count = 0.
I'm stumped.
Stephen
You can use do the following to get all fields without having to resort to
Request.MethodType:
MyHTTPFields.AddStrings(Request.ContentFields);
MyHTTPFields.AddStrings(Request.QueryFields);
I still haven't figured out what the server is doing :-( but I will rebuild
it from scratch as soon as I can get access.
Stephen
Ronaldo Melo Ferraz <NsOhSe...@taskmail.com.br> wrote in message
news:8megia$n...@bornews.borland.com...
> I still haven't figured out what the server is doing :-( but I will
rebuild
> it from scratch as soon as I can get access.
I have worked with IIS almost daily for the past 3 years. I've seen so many
strange things that I will not be suprised at all if the problem goes way
with a fresh installation.