wavded / ogr2ogr

An ogr2ogr wrapper library
MIT License
214 stars 46 forks source link

change http method #88

Closed mohammedX6 closed 1 year ago

mohammedX6 commented 1 year ago

I am trying to call an ESRI feature service with a long URL using the ESRIJSON driver, an error appeared from the GIS server

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""[http://www.w3.org/TR/html4/strict.dtd">](http://www.w3.org/TR/html4/strict.dtd%22%3E)
<HTML><HEAD><TITLE>Request URL Too Long</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Request URL Too Long</h2>
<hr><p>HTTP Error 414. The request URL is too long.</p>
</BODY></HTML>

I find out that I must change my request from GET to POST vsicurl supports POST from ogr2ogr How do I change my request from GET to POST ?

wavded commented 1 year ago

Hey @mohammedX6 , I don't see support for POST in vsicurl, unless I'm missing something here or you have a different reference?

https://gdal.org/user/virtual_file_systems.html#vsicurl

If you have access to the GIS server, you may be able to bump up the request URL limit as well.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.