Re: Alter querystring through APP
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Fri, 26 Oct 2007 16:29:27 -0400
Max K. <maxkl@xxxxxxxxxxxxx> wrote:
On Oct 26, 11:55 am, "Igor Tandetnik" <itandet...@xxxxxxxx> wrote:
In my case I have an empty form, with method = POST and action is
blank. It means that it has to send an empty POST request to the same
URL + querystring that was on the address bar. Correct?
What do you mean, an _empty_ POST request? Form fields go into the POST
body.
I'm not sure what hapens when action= is empty. I wouldn't be surprised
if the browser takes the page's URL, strips the part after the question
mark and uses the stripped URL to submit the form. It is highly unusual,
though not technically prohibited by the protocol, to send a POST
request (with parameters in the body) to a URL that also specifies
parameters.
If I ignore this problem and have my APP add the querystring to the
URL on the second request
What do you mean by "second request"? I assume there's also a
"first"? How do the two differ?
The first was initiated by typing URL in Browser address bar. The
second request was hitting submit on the form returned by the first
request.
So you have the same handler on the server responding both to GET and
POST requests? Where does it take parameters from, when they are
specified both in the URL and the POST body? Make sure it doesn't get
confused when it gets such a request - or better yet, avoid this
situation in the first place.
My general question: is it possible for the APP to change URL after
request was initiated by browser?
I believe what you are doing should work: pass a new URL down to the
target APP's Start() method, and report the new URL back to the browser
with BINDSTATUS_REDIRECTING. I suspect your games with putting query
parameters on a POST request is what's confusing the browser.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
.
- References:
- Alter querystring through APP
- From: Max K.
- Re: Alter querystring through APP
- From: Igor Tandetnik
- Re: Alter querystring through APP
- From: Max K.
- Alter querystring through APP
- Prev by Date: Re: Alter querystring through APP
- Next by Date: Re: Web Spider
- Previous by thread: Re: Alter querystring through APP
- Next by thread: Re: Web Spider
- Index(es):
Relevant Pages
|
Loading