Skip to content

Instantly share code, notes, and snippets.

@guychisholm
guychisholm / wfs_request_example.py
Created October 17, 2012 12:53
Python WFS request example
import sys, httplib
host = "localhost"
endpoint = "/wfs"
wfs_request = "wfs_request.xml"
request = open(wfs_request,"r").read()
wfs = httplib.HTTP(host)
wfs.putrequest("POST", endpoint)
wfs.putheader("Host", host)