using CGI wrapper get HTTP status 302 downloading WFS layer
Charlton Purvis
cpurvis at ASG.SC.EDU
Wed Dec 22 10:03:27 PST 2004
(Apologies if this is a multi post. UMN keeps rejecting my posts, so I'm
posting via the web listserv. Maybe that's a sign that Santa thinks I'm
naughty.)
Hi, all:
I'm getting a WFS client error on a layer behind a perl CGI wrapper.
Using MS 4.4.0, a shp2img will give me this error . . .
msDrawMap(): Image handling error. Failed to draw layer named 'test_wfs'.
<br>
msWFSLayerWhichShapes(): WFS connection error. Got HTTP status 302
downloading WFS ayer test_wfs <br>
. . . followed by the offending URL. But this offending URL is what the
CGI wrapper is supposed to spit out, and it looks great.
What is happening is that the WFS request isn't hanging around to get the
redir URL and then follow it for the results. We're only talking a matter
of seconds, so timeout can't be the problem.
CONNECTION "http://nautilus.baruch.sc.edu/wfs/seacoos_in_situ?
TIME=2004-10-10 00:00:00"
METADATA
"wfs_version" "1.0.0"
"wfs_service" "WFS"
"wfs_typename" "sst_obs_hourly"
"wfs_srs" "EPSG:4269"
"wfs_name" "sst_obs_hourly"
"wfs_title" "sst_obs_hourly"
"wfs_request_method" "GET"
"wfs_connectiontimeout" "60"
END
The resultant URL is:
http://nautilus.baruch.sc.edu/wfs/seacoos_in_situ?TIME=2004-10-10
00:00:00&&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=sst_obs_hou
rly&BBOX=-95.173895052700004,43.683842381788374,-
67.904353273699996,58.198906944211622
which works great.
As a matter of fact, this same layer is served as a WMS layer which uses a
similar Perl CGI wrapper. And everything WMS works fine; the WMS request
does follow the new URL while the WFS does not.
Any ideas?
Thanks,
Charlton
More information about the MapServer-users
mailing list