Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change http method #88

Closed
mohammedX6 opened this issue Sep 22, 2022 · 3 comments
Closed

change http method #88

mohammedX6 opened this issue Sep 22, 2022 · 3 comments
Labels

Comments

@mohammedX6
Copy link

mohammedX6 commented Sep 22, 2022

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:https://www.w3.org/TR/html4/strict.dtd">](http:https://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
Copy link
Owner

wavded commented Sep 22, 2022

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
Copy link

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 github-actions bot added the stale label Oct 23, 2022
@github-actions
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants