<div dir="ltr"><div class="gmail_default" style="font-family:garamond,serif">Hi</div><div class="gmail_default" style="font-family:garamond,serif"><br></div><div class="gmail_default" style="font-family:garamond,serif">I have tried to POST a XML execute request with urllib in Python. Here is a sample of the code:</div>
<div class="gmail_default" style="font-family:garamond,serif">url = "<a href="http://localhost/cgi-bin/zoo_loader.cgi" target="_blank">http://localhost/cgi-bin/zoo_loader.cgi</a>"<br></div><div class="gmail_default">
<div class="gmail_default">
<font face="garamond, serif">req = urllib2.Request(url=url, data=xml, headers={'Content-Type': 'text/xml'})</font></div><div class="gmail_default"><font face="garamond, serif"><br></font></div><div class="gmail_default">
<font face="garamond, serif">After the Python script was executed, the output returned the following:</font></div><div class="gmail_default"><font face="garamond, serif"><div class="gmail_default"> <ows:Exception exceptionCode="MissingParameterValue"><br>
</div><div class="gmail_default"> <ows:ExceptionText>Parameter <request> was not specified</ows:ExceptionText></div><div class="gmail_default"> </ows:Exception></div><div><br></div><div>
The XML worked with another WPS that I have used, all of the parameters were specified in the XML request. Could you please help?</div><div><br></div></font></div></div></div>