Passing a Parameter in HTML

  • Thread starter Thread starter Dale F.
  • Start date Start date
D

Dale F.

Here's a bit of HTML that attempts to pass a "/Begin"
parameter to an EXE file. (The EXE file compiles some
data and returns an HTML response.)

<form method="POST"
action="http://11.22.33.444/MyFolder/MyEXEFile.exe/Begin">

With the parameter, the browser doesn't find the
executable. Without the parameter, the browser does find
the EXE file but, of course, the EXE doesn't work
properly.

Gary responded: "I don't think that's the correct syntax
for a parameter. In this construction, "Begin" looks
like the lowest level folder or a file name."

Dale says: "If this is not the correct syntax, then what
is the correct syntax?" (see the line of HTML above.)

Thanks,

Dale F.
 
Hi,

It seems like you are trying to feed a string to a
windows executable with an html form. The problem lies in
how you are handing the parameters to your executable - You
can't use your form method to execute a serverside windows
application so directly (that would be similar to trying to
execute a remote application by clicking on it - unless it's
a script, it won't really work).

A better idea would be to create a server-side script,
send the variable to the script, which then executes the
program on the server, and returns the reply.

Of course, there may be a way to do it in the manner you
describe; but I'm not so sure. . .

:-)

Regards,

Altrus






message : Here's a bit of HTML that attempts to pass a "/Begin"
: parameter to an EXE file. (The EXE file compiles some
: data and returns an HTML response.)
:
: <form method="POST"
: action="http://11.22.33.444/MyFolder/MyEXEFile.exe/Begin">
:
: With the parameter, the browser doesn't find the
: executable. Without the parameter, the browser does find
: the EXE file but, of course, the EXE doesn't work
: properly.
:
: Gary responded: "I don't think that's the correct syntax
: for a parameter. In this construction, "Begin" looks
: like the lowest level folder or a file name."
:
: Dale says: "If this is not the correct syntax, then what
: is the correct syntax?" (see the line of HTML above.)
:
: Thanks,
:
: Dale F.
:
:
 
A better idea would be to create a server-side script,
send the variable to the script, which then executes the
program on the server, and returns the reply. <<

Altrus,

I really have no idea what you are talking about.

Why was I able to pass the parameter before, in previous
versions of IE, and I'm not able to pass the parameter
with IE 6? Or is this not an IE issue at all?

Thanks,

Dale F.
 
Sorry,

I assumed you were trying to do so over a network (as
opposed to the local machine, which I guess is what you have
been doing). I misunderstood.

Apologies,

Altrus


message : >> A better idea would be to create a server-side script,
: send the variable to the script, which then executes the
: program on the server, and returns the reply. <<
:
: Altrus,
:
: I really have no idea what you are talking about.
:
: Why was I able to pass the parameter before, in previous
: versions of IE, and I'm not able to pass the parameter
: with IE 6? Or is this not an IE issue at all?
:
: Thanks,
:
: Dale F.
:
: >-----Original Message-----
: >Hi,
: >
: > It seems like you are trying to feed a string to a
: >windows executable with an html form. The problem lies in
: >how you are handing the parameters to your executable -
: You
: >can't use your form method to execute a serverside
: windows
: >application so directly (that would be similar to trying
: to
: >execute a remote application by clicking on it - unless
: it's
: >a script, it won't really work).
: >
: > A better idea would be to create a server-side
: script,
: >send the variable to the script, which then executes the
: >program on the server, and returns the reply.
: >
: >Of course, there may be a way to do it in the manner you
: >describe; but I'm not so sure. . .
: >
: >:-)
: >
: >Regards,
: >
: >Altrus
: >
: >
: >
: >
: >
: >
: >message : >: Here's a bit of HTML that attempts to pass a "/Begin"
: >: parameter to an EXE file. (The EXE file compiles some
: >: data and returns an HTML response.)
: >:
: >: <form method="POST"
: >:
: action="http://11.22.33.444/MyFolder/MyEXEFile.exe/Begin">
: >:
: >: With the parameter, the browser doesn't find the
: >: executable. Without the parameter, the browser does
: find
: >: the EXE file but, of course, the EXE doesn't work
: >: properly.
: >:
: >: Gary responded: "I don't think that's the correct
: syntax
: >: for a parameter. In this construction, "Begin" looks
: >: like the lowest level folder or a file name."
: >:
: >: Dale says: "If this is not the correct syntax, then
: what
: >: is the correct syntax?" (see the line of HTML above.)
: >:
: >: Thanks,
: >:
: >: Dale F.
: >:
: >:
: >
: >
: >.
: >
 
Back
Top