| Author | Topic: Setlocation not working with IIS |
---|
| Thomas Braun
| Setlocation not working with IIS
on Tue, 03 Apr 2007 17:40:50 +0200Hi,
as I'm in need of using SetLocation, I'm bringing up an old issue...
SetLocation is not working for me, all I keep getting is an empty white
page.
The weird thing is, this works with my local apache test install, but not
with the public production that runs on IIS.
The server reply looks perfectly OK to me (replaced the non-relevant URL
parts with xxx's):
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Tue, 03 Apr 2007 15:34:19 GMT
Connection: close
Content-Type: text/html
Location: /cgi-bin/waa1gate.isa?WAA_PACKAGE=xxxxxxx&WAA_FORM=yyyyyyy&WAA_HTML3CLASS=zzzzzzz&PAGEID=admin&EVENTID=61&SID=n7LLHYTenyPcgwAgbG22a34Uxsewe6tsCft77tMebTatwGVL53DQxRjjE6e4f7C6
Any ideas?
regards
Thomas |
| Bruce Anderson | Re: Setlocation not working with IIS
on Tue, 03 Apr 2007 18:27:36 -0500May I ask how your form function is constructed?
"Thomas Braun" <spam@software-braun.de> wrote in message
news:1lwt048da841p.gabdirabvp1a.dlg@40tude.net...
> Hi,
>
> as I'm in need of using SetLocation, I'm bringing up an old issue...
>
> SetLocation is not working for me, all I keep getting is an empty white
> page.
>
> The weird thing is, this works with my local apache test install, but not
> with the public production that runs on IIS.
>
> The server reply looks perfectly OK to me (replaced the non-relevant URL
> parts with xxx's):
>
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Tue, 03 Apr 2007 15:34:19 GMT
> Connection: close
> Content-Type: text/html
> Location: /cgi-bin/waa1gate.isa?
WAA_PACKAGE=xxxxxxx&
WAA_FORM=yyyyyyy&
WAA_HTML3CLASS=zzzzzzz&
PAGEID=admin&
EVENTID=61&
SID=n7LLHYTenyPcgwAgbG22a34Uxsewe6tsCft77tMebTatwGVL53DQxRjjE6e4f7C6
>
> Any ideas?
>
> regards
> Thomas |
| Thomas Braun
| Re: Setlocation not working with IIS
on Wed, 04 Apr 2007 13:18:13 +0200Bruce Anderson wrote:
> May I ask how your form function is constructed?
Which form function do you refer to - the one calling SetLocation() or the
form function which is the target of SetLocation()?
thomas |
| Thomas Braun
| Re: Setlocation not working with IIS
on Wed, 04 Apr 2007 15:08:17 +0200Bruce Anderson wrote:
> May I ask how your form function is constructed?
I created the following sample:
FUNCTION ReLocate(oH)
oH:SetLocation(oH:GetVar("url"))
RETURN .T.
If I call it like this:
http://www.ellistours.de/cgi-bin/waa1gate.isa?WAA_PACKAGE=testp&WAA_FORM=ReLocate&url=http://www.google.de
all I get is an empty browser window instead of the Google website...
It works without problem when using my local Apache server.
I suspect some kind of misconfiguration of my IIS installation, but I can't
see anything unusual...
regards
Thomas |
| Thomas Braun
| Re: Setlocation not working with IIS
on Wed, 04 Apr 2007 15:51:14 +0200Hi,
there seems to be a difference between IIS and Apache regarding the
HTTP-headers, Apache is sending "HTTP/1.1 302 Found", while IIS sends
"HTTP/1.1 200 OK", which causes the browser to do nothing at all... status
code 302 requests additional action on the browser side of the connection
(according to http://en.wikipedia.org/wiki/List_of_HTTP_status_codes )
So I'm asking, what the hell is going on?
regards
Thomas |
| Bruce Anderson | Re: Setlocation not working with IIS
on Wed, 04 Apr 2007 12:11:18 -0500How are you getting a look at the HTTP-header? I would appreciate the
education. |
| Phil Ide
| Re: Setlocation not working with IIS
on Wed, 04 Apr 2007 18:39:40 +0100Bruce,
> How are you getting a look at the HTTP-header? I would appreciate the
> education.
If you aer using IE as the browser, you can use Fiddler which acts as a
proxy for IE, allowing you to examine the send and response headers and data
payloads.
If you use FireFox, you can install Firebug, which provides similar
functionality, although not as mamy features.
Regards,
Phil Ide
---------------------
www.xbhcl.com
www.pbih.eu
www.idep.org.uk/xbase
---------------------
I love my country but I fear my government. |
| Thomas Braun
| Re: Setlocation not working with IIS
on Thu, 05 Apr 2007 12:02:05 +0200Phil Ide wrote:
> If you aer using IE as the browser, you can use Fiddler which acts as a
> proxy for IE, allowing you to examine the send and response headers and data
> payloads.
Fiddler is great, but on the fiddler page I found SlickRun, which is even
greater - thanks for the initial link to fiddler!
Thomas |
| Phil Ide
| Re: Setlocation not working with IIS
on Thu, 05 Apr 2007 16:50:32 +0100Thomas,
>> If you aer using IE as the browser, you can use Fiddler which acts as a
>> proxy for IE, allowing you to examine the send and response headers and data
>> payloads.
>
> Fiddler is great, but on the fiddler page I found SlickRun, which is even
> greater - thanks for the initial link to fiddler!
I couldn't find a reference to slickrun on the fiddler site, but a quick
google found it for me. Out of interest, where on the fiddler site did you
find it?
Regards,
Phil Ide
---------------------
www.xbhcl.com
www.pbih.eu
www.idep.org.uk/xbase
---------------------
One more time...Trying Megamail |
| Thomas Braun
| Re: Setlocation not working with IIS
on Tue, 10 Apr 2007 09:15:59 +0200Phil Ide wrote:
> I couldn't find a reference to slickrun on the fiddler site, but a quick
> google found it for me. Out of interest, where on the fiddler site did you
> find it?
I also had to do a google search to find it again <blush>
http://www.fiddlertool.com/Fiddler/essentials.asp
regards
thomas |
| Phil Ide
| Re: Setlocation not working with IIS
on Tue, 10 Apr 2007 10:32:33 +0100Thomas,
>> I couldn't find a reference to slickrun on the fiddler site, but a quick
>> google found it for me. Out of interest, where on the fiddler site did you
>> find it?
>
> I also had to do a google search to find it again <blush>
>
> http://www.fiddlertool.com/Fiddler/essentials.asp
That's a nice set of dev tool links, thanks!
Regards,
Phil Ide
---------------------
www.xbhcl.com
www.pbih.eu
www.idep.org.uk/xbase
---------------------
Taglines cause cancer. |
| Thomas Braun
| Re: Setlocation not working with IIS
on Thu, 05 Apr 2007 11:47:44 +0200Bruce Anderson wrote:
> How are you getting a look at the HTTP-header? I would appreciate the
> education.
I'm currently using WebBug to directly send http requests to the server.
But Phil's suggestion seems to be much better... I'm currently downloading
this tool, adding one more icon to my already heavily overloaded desktop
Thomas |
| Bruce Anderson | Re: Setlocation not working with IIS
on Wed, 04 Apr 2007 09:23:44 -0500Just tested it and this method does not work with Win 2000 Server. I don't
think it is a misconfiguration issue. |