<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It would have to be a POST, but even that will start to have timeout issues. An API which requires that kind of input is kind of a bad idea. Perhaps you could describe what you’re trying to do?<div class=""><br class=""></div><div class="">Thanks,</div><div class="">doug</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 19, 2016, at 4:59 PM, Shraddha Pandhe <<a href="mailto:spandhe.openstack@gmail.com" class="">spandhe.openstack@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi folks,<div class=""><br class=""></div><div class=""><br class=""></div><div class="">I am writing a Neutron extension which needs to take 1000s of network-ids as argument for filtering. The CURL call is as follows:</div><div class=""><br class=""></div><div class=""><span style="font-family:Monaco;font-size:12px;background-color:rgb(243,243,243)" class=""><font class="">curl -i -X GET '<a href="http://hostname:port/neutron/v2.0/extension_name.json?net-id=fffecbd1-0f6d-4f02-aee7-ca62094830f5&net-id=fffeee07-4f94-4cff-bf8e-a2aa7be59e2e'" class="">http://hostname:port/neutron/v2.0/extension_name.json?net-id=fffecbd1-0f6d-4f02-aee7-ca62094830f5&net-id=fffeee07-4f94-4cff-bf8e-a2aa7be59e2e'</a> -H "User-Agent: python-neutronclient" -H "Accept: application/json" -H "X-Auth-Token: cccccccccccccccccccccccccccccccc"</font></span></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">The list of net-ids can go up to 1000s. The problem is, with such large url, I get the "Request URI too long" error. I don't want to update this limit as proxies can have their own limits.</div><div class=""><br class=""></div><div class="">What options do I have to send 1000s of network IDs? </div><div class=""><br class=""></div><div class="">1. -d '{}' is not a recommended option for GET call and wsgi Controller drops the data part when routing the request.</div><div class=""><br class=""></div><div class="">2. Use POST instead of GET? I will need to write the get_<resource> logic inside create_resource logic for this to work. Its a hack, but complies with HTTP standard.</div><div class=""><br class=""></div></div>
__________________________________________________________________________<br class="">OpenStack Development Mailing List (not for usage questions)<br class="">Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class=""></div></blockquote></div><br class=""></div></body></html>