Re: Alter querystring through APP



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


.



Relevant Pages

  • Re: Controlling Javascript from server side
    ... declaration of the encoding of the message body. ... 'true' means that the request must be handled asynchronously. ... (HTTP/1.x does not define such a request header for any request ... and that's exactly why it can be left empty in my code. ...
    (comp.lang.javascript)
  • confirm subscribe to mainbionewslist@bcs-hq.com
    ... an empty reply to this address: ... They are always returned as sets of 100, max 2000 per request, ... You can start a subscription for an alternate address, ... please contact my owner at ...
    (freebsd-hackers)
  • confirm subscribe to phpwizard@rent-a-phpwizard.de
    ... an empty reply to this address: ... They are always returned as sets of 100, max 2000 per request, ... You can start a subscription for an alternate address, ... please contact my owner at ...
    (freebsd-current)
  • Re: Rule column empty in log
    ... Logs Show Empty Rules Deny Requests ... the log indicates "-" (empty) as the rule denying the request. ... The Rule field is marked empty when ISA Server denies the connection for any reason other than a firewall policy rule. ...
    (microsoft.public.isaserver)
  • Re: Changes to Linux/SCSI target mode infrastructure for v2.6.28
    ... not trigger a request is on the queuelist with a timeout_list not empty. ... Hmm, the outputted "sector " range is definately is bogus, as the only ...
    (Linux-Kernel)

Loading