<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.yiv8480966943msonormal, li.yiv8480966943msonormal, div.yiv8480966943msonormal
{mso-style-name:yiv8480966943msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.yiv8480966943msochpdefault, li.yiv8480966943msochpdefault, div.yiv8480966943msochpdefault
{mso-style-name:yiv8480966943msochpdefault;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.yiv8480966943msonormal1, li.yiv8480966943msonormal1, div.yiv8480966943msonormal1
{mso-style-name:yiv8480966943msonormal1;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.yiv8480966943msochpdefault1, li.yiv8480966943msochpdefault1, div.yiv8480966943msochpdefault1
{mso-style-name:yiv8480966943msochpdefault1;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.yiv8480966943msohyperlink
{mso-style-name:yiv8480966943msohyperlink;}
span.yiv8480966943msohyperlinkfollowed
{mso-style-name:yiv8480966943msohyperlinkfollowed;}
span.yiv8480966943msohyperlink1
{mso-style-name:yiv8480966943msohyperlink1;}
span.yiv8480966943msohyperlinkfollowed1
{mso-style-name:yiv8480966943msohyperlinkfollowed1;}
span.yiv8480966943emailstyle171
{mso-style-name:yiv8480966943emailstyle171;}
span.yiv8480966943emailstyle27
{mso-style-name:yiv8480966943emailstyle27;}
p.yiv8480966943msonormal2, li.yiv8480966943msonormal2, div.yiv8480966943msonormal2
{mso-style-name:yiv8480966943msonormal2;
margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.yiv8480966943msohyperlink2
{mso-style-name:yiv8480966943msohyperlink2;
color:blue;
text-decoration:underline;}
span.yiv8480966943msohyperlinkfollowed2
{mso-style-name:yiv8480966943msohyperlinkfollowed2;
color:purple;
text-decoration:underline;}
p.yiv8480966943msonormal3, li.yiv8480966943msonormal3, div.yiv8480966943msonormal3
{mso-style-name:yiv8480966943msonormal3;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.yiv8480966943msochpdefault2, li.yiv8480966943msochpdefault2, div.yiv8480966943msochpdefault2
{mso-style-name:yiv8480966943msochpdefault2;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
p.yiv8480966943msonormal11, li.yiv8480966943msonormal11, div.yiv8480966943msonormal11
{mso-style-name:yiv8480966943msonormal11;
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Times New Roman",serif;}
span.yiv8480966943msohyperlink11
{mso-style-name:yiv8480966943msohyperlink11;
color:#0563C1;
text-decoration:underline;}
span.yiv8480966943msohyperlinkfollowed11
{mso-style-name:yiv8480966943msohyperlinkfollowed11;
color:#954F72;
text-decoration:underline;}
span.yiv8480966943emailstyle1711
{mso-style-name:yiv8480966943emailstyle1711;
color:windowtext;}
p.yiv8480966943msochpdefault11, li.yiv8480966943msochpdefault11, div.yiv8480966943msochpdefault11
{mso-style-name:yiv8480966943msochpdefault11;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.yiv8480966943emailstyle271
{mso-style-name:yiv8480966943emailstyle271;
color:#1F497D;}
span.Shkpostityyli38
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Let’s stop all now and think for a while.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Steve asks, as it appears in the title, about Mapserver as WFS client, so finding the requests which Mapserver is sending
to outer world. Carlos and I have answered about how to log incoming requests for WFS server.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I use Fiddler as a local proxy server and configure Mapserver to use the proxy
<a href="http://mapserver.org/ogc/wfs_client.html">http://mapserver.org/ogc/wfs_client.html</a>. Fiddler records all the traffic and it is very useful for debugging. BTW. the wfs client manual page tells that POST is the default but it can be changed with wfs_request_method
metadata.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Carlos Ruiz wrote:<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div id="yui_3_16_0_1_1455829382800_7468">
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">OK. If you are doing a request to a WFS layer from an OpenLayers application, you can see the request by pressing SHIFT+CTRL+</span><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">J
in FireFox and enable the Network toggle button.<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_1_1455829382800_7591">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"><br>
<br>
<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_1_1455829382800_7548">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">You will see the full request when hovering the URL<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_1_1455829382800_7662">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"><br>
<br>
<o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_1_1455829382800_7450">
<div id="yui_3_16_0_1_1455829382800_7636">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">GET
<a href="http://localhost/cgi-bin/accidentes?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=Estaciones%20Tren%20Ligero%20-%20Tipo&CRS=EPSG%3A4326&STYLES=&WIDTH=2025&HEIGHT=962&BBOX=20.624878406524658%2C-103.43881130218506%2C20.707404613494873%2C-103.26500415802002">
http://localhost/cgi-bin/accidentes?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=Estaciones%20Tren%20Ligero%20-%20Tipo&CRS=EPSG%3A4326&STYLES=&WIDTH=2025&HEIGHT=962&BBOX=20.624878406524658%2C-103.43881130218506%2C20.707404613494873%2C-103.26500415802002</a>
[HTTP/1.1 200 OK 361ms]<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
<div id="yui_3_16_0_1_1455829382800_7404">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div id="yui_3_16_0_1_1455829382800_7395">
<div id="yui_3_16_0_1_1455829382800_7394">
<div id="yui_3_16_0_1_1455829382800_7393">
<div id="yui_3_16_0_1_1455829382800_7392">
<div class="MsoNormal" align="center" style="text-align:center;background:white">
<span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">
<hr size="1" width="100%" align="center">
</span></div>
<p class="MsoNormal" style="background:white"><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">From:</span></b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"> "Lime, Steve D (MNIT)" <<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>><br>
<b id="yui_3_16_0_1_1455829382800_7408">To:</b> Carlos Ruiz <<a href="mailto:boolean10001@yahoo.com">boolean10001@yahoo.com</a>>; "<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>" <<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a>>
<br>
<b>Sent:</b> Thursday, February 18, 2016 3:06 PM<br>
<b id="yui_3_16_0_1_1455829382800_7410">Subject:</b> RE: [mapserver-users] WFS Client...</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_1_1455829382800_7411">
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
<div id="yiv8480966943">
<div id="yui_3_16_0_1_1455829382800_7415">
<div id="yui_3_16_0_1_1455829382800_7414">
<div id="yui_3_16_0_1_1455829382800_7413">
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">The WFS server is not under my control, so no access log.</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div id="yui_3_16_0_1_1455829382800_7416">
<p class="MsoNormal" style="background:white"><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div id="yiv8480966943yqt60777">
<div id="yui_3_16_0_1_1455829382800_7667">
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm" id="yui_3_16_0_1_1455829382800_7666">
<div id="yui_3_16_0_1_1455829382800_7665">
<p class="MsoNormal" style="background:white"><b><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black">From:</span></b><span style="font-size:11.0pt;font-family:"Helvetica",sans-serif;color:black"> Carlos Ruiz [<a href="mailto:boolean10001@yahoo.com">mailto:boolean10001@yahoo.com</a>]
<br>
<b>Sent:</b> Thursday, February 18, 2016 3:06 PM<br>
<b>To:</b> Lime, Steve D (MNIT) <<a href="mailto:Steve.Lime@state.mn.us">Steve.Lime@state.mn.us</a>>;
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> Re: [mapserver-users] WFS Client...</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
<div>
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3207">
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">Steve,</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3208">
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3187">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">You can check the Apache "access.log" file and watch for the HTTP GET requests. You will find something like this:</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3209">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
</div>
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3206">
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">127.0.0.1 - - [16/Dec/2015:16:59:31 -0600] "GET /cgi-bin/landsat8?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&LAYERS=2014&WIDTH=256&HEIGHT=256&CRS=EPSG%3A4326&STYLES=&BBOX=22.5%2C-101.25%2C33.75%2C-90
HTTP/1.1" 200 412</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
<div>
<div style="margin-bottom:12.0pt">
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"> </span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3121">
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3120">
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3119">
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3118">
<div class="MsoNormal" align="center" style="text-align:center;background:white">
<span style="font-family:"Helvetica",sans-serif;color:black">
<hr size="1" width="100%" align="center">
</span></div>
<div>
<p class="MsoNormal" style="background:white"><b><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black">From:</span></b><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;color:black"> "Lime, Steve D (MNIT)" <<a href="mailto:Steve.Lime@state.mn.us" target="_blank">Steve.Lime@state.mn.us</a>><br>
<b>To:</b> "<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>" <<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>>
<br>
<b>Sent:</b> Thursday, February 18, 2016 3:01 PM<br>
<b id="yiv8480966943yui_3_16_0_1_1455829382800_3250">Subject:</b> [mapserver-users] WFS Client...</span><span style="font-family:"Helvetica",sans-serif;color:black"><o:p></o:p></span></p>
</div>
</div>
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3185">
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
<div id="yiv8480966943">
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3225">
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3224">
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3223">
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black">Hi all: Is there any way to log the request URL and POST data associated with MapServer WFS layers? That info doesn’t seem to be showing up in debug logs
and it would be helpful to see exactly what is being sent to the WFS server.<o:p></o:p></span></p>
</div>
</div>
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3226">
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
</div>
<div id="yiv8480966943yui_3_16_0_1_1455829382800_3244">
<div>
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black">Steve<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div style="margin-bottom:12.0pt">
<p class="MsoNormal" style="background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt;background:white"><span style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>