for i in {0..20}; do
  echo "Running WFS Requests $i"
  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin: http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type: application/xml' -H 'Accept: */*'   -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data-binary '<wfs:GetFeature service="WFS" version="1.1.0"  xmlns:topp="http://www.openplans.org/topp"  xmlns:wfs="http://www.opengis.net/wfs"  xmlns:ogc="http://www.opengis.net/ogc"  xmlns:gml="http://www.opengis.net/gml"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <wfs:Query typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:lowerCorner>-8360384.63640429 4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466 5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>' --compressed -s -o ./GRP_case2_1.xml &
  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin: http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type: application/xml' -H 'Accept: */*'   -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data-binary '<wfs:GetFeature service="WFS" version="1.1.0"  xmlns:topp="http://www.openplans.org/topp"  xmlns:wfs="http://www.opengis.net/wfs"  xmlns:ogc="http://www.opengis.net/ogc"  xmlns:gml="http://www.opengis.net/gml"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <wfs:Query typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:lowerCorner>-8360384.63640429 4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466 5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>' --compressed -s -o ./GRP_case2_2.xml &
  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin: http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type: application/xml' -H 'Accept: */*'   -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data-binary '<wfs:GetFeature service="WFS" version="1.1.0"  xmlns:topp="http://www.openplans.org/topp"  xmlns:wfs="http://www.opengis.net/wfs"  xmlns:ogc="http://www.opengis.net/ogc"  xmlns:gml="http://www.opengis.net/gml"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <wfs:Query typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:lowerCorner>-8360384.63640429 4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466 5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>' --compressed -s -o ./GRP_case2_3.xml &
  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin: http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type: application/xml' -H 'Accept: */*'   -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data-binary '<wfs:GetFeature service="WFS" version="1.1.0"  xmlns:topp="http://www.openplans.org/topp"  xmlns:wfs="http://www.opengis.net/wfs"  xmlns:ogc="http://www.opengis.net/ogc"  xmlns:gml="http://www.opengis.net/gml"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <wfs:Query typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:lowerCorner>-8360384.63640429 4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466 5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>' --compressed -s -o ./GRP_case2_4.xml &
  curl 'http://localhost:8080/geoserver/wfs' -H 'Origin: http://localhost:8080' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: ja,en;q=0.9,en-US;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type: application/xml' -H 'Accept: */*'   -H 'X-Requested-With: XMLHttpRequest' -H 'Connection: keep-alive' --data-binary '<wfs:GetFeature service="WFS" version="1.1.0"  xmlns:topp="http://www.openplans.org/topp"  xmlns:wfs="http://www.opengis.net/wfs"  xmlns:ogc="http://www.opengis.net/ogc"  xmlns:gml="http://www.opengis.net/gml"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <wfs:Query typeName="topp:states"><wfs:PropertyName>topp:STATE_NAME</wfs:PropertyName><wfs:PropertyName>topp:PERSONS</wfs:PropertyName><wfs:PropertyName>topp:FAMILIES</wfs:PropertyName><wfs:PropertyName>topp:HOUSHOLD</wfs:PropertyName><wfs:PropertyName>topp:MALE</wfs:PropertyName><wfs:PropertyName>topp:FEMALE</wfs:PropertyName><ogc:Filter><ogc:BBOX><ogc:PropertyName>the_geom</ogc:PropertyName><gml:Envelope srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:lowerCorner>-8360384.63640429 4896884.56155475</gml:lowerCorner><gml:upperCorner>-8055285.29673466 5088234.26762911</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature>' --compressed -s -o ./GRP_case2_5.xml &
  wait
  grep "Unable to encode filter" ./GRP_case2_*.xml
done





