Re: [PHP] Re: Header() - POST



On 20 Sep 2008, at 01:23, Michelle Konzack wrote:
Am 2008-09-05 17:11:58, schrieb Stut:
You're trying to post to the browser which won't know how to handle
it. The header() function is modifying the response headers that are
being sent back to the browser, they do not create a new request.

If you want to do a new request I suggest looking at curl. If you
actually want the browser to make the new request the only way is to
return a hidden form and auto-submit it with JS. However, as someone
else pointed out if that second request is coming back to the same
server there probably isn't any need for a second request at all.

Why using JS?

echo "<meta http-equiv=\"refresh\" content=\"0;" . $FULL_URL "\">";

would do the trick...

Bloody nora Michelle. If you're going to post answers to week-old questions please have the decency to read the question properly. The OP wanted to automatically POST some data. That's not gonna happen with a meta tag no matter how much you want it to do it.

-Stut

--
http://stut.net/
.



Relevant Pages

  • How to send response headers from proxy to browser?
    ... The proxy server intercepts every request from the ... browser and redirect it to www.yahoo.com. ... should we do to send the response headers from proxy? ...
    (comp.lang.java.programmer)
  • Re: How to send response headers from proxy to browser?
    ... browser and redirect it to www.yahoo.com. ... should we do to send the response headers from proxy? ... I suspect that the problem is that you are not correlating what the client sees ... When you send your request to Yahoo, ...
    (comp.lang.java.programmer)
  • Re: Alter querystring through APP
    ... It means that it has to send an empty POST request to the same ... What do you mean, an _empty_ POST request? ... What do you mean by "second request"? ... The first was initiated by typing URL in Browser address bar. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Header() - POST
    ... The headerfunction is modifying the response headers that are ... being sent back to the browser, they do not create a new request. ... If you want to do a new request I suggest looking at curl. ... Debian GNU/Linux Consultant ...
    (php.general)
  • Re: [PHP] Header() - POST
    ... Here is my header code, and the post string below it. ... The headerfunction is modifying the response headers that are being sent back to the browser, they do not create a new request. ... as someone else pointed out if that second request is coming back to the same server there probably isn't any need for a second request at all. ...
    (php.general)