<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SDN Delete Flow REST in Java in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/sdn-delete-flow-rest-in-java/m-p/6761635#M800</link>
    <description>&lt;P&gt;Hi Avimany,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a &lt;A href="http://curl.haxx.se/libcurl/java/" target="_blank"&gt;Java wrapper &lt;/A&gt;for libcurl. Since it's implemented&amp;nbsp;on libcurl, anything that works with cURL also works with libcurl. For an example of using libcurl (in C, regrettably not in Java, but the&amp;nbsp;principle should be the same) see &lt;A href="https://community.hpe.com/t5/SDN-Discussions/HP-SDN-VAN-Controller-V2-0-0-4253-Token-Generation-using-LIB/m-p/6682759#M617" target="_blank"&gt;here&lt;/A&gt;. Let me know whether this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wouter&lt;/P&gt;&lt;P&gt;HP SDN CoE Team&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jul 2015 11:28:07 GMT</pubDate>
    <dc:creator>Joetel</dc:creator>
    <dc:date>2015-07-03T11:28:07Z</dc:date>
    <item>
      <title>SDN Delete Flow REST in Java</title>
      <link>https://community.hpe.com/t5/software-defined-networking/sdn-delete-flow-rest-in-java/m-p/6751746#M783</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to delete a flow in the VAN controller using DELETE REST call, something like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -sk -H "X-Auth-Token:6b2fa61a754a4cb984cc943689e65276" -X DELETE -H 'Content-Type:application/json' -d '{"flow":{"priority":50000,"idle_timeout":200,"match":[{"eth_type":"ipv4"},{"ipv4_src":"10.0.0.1"},{"ipv4_dst":"10.0.0.2"},{"ip_proto":"tcp"},{"tcp_dst":"80"}],"actions":[{"output":2}]}}' &lt;A target="_blank" href="https://127.0.0.1:8443/sdn/v2.0/of/datapaths/00:00:00:00:00:00:00:01/flows"&gt;https://127.0.0.1:8443/sdn/v2.0/of/datapaths/00:00:00:00:00:00:00:01/flows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using curl command, this works fine. Is there a similar way in Java (library/package etc.), which can be used to do the same?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the common Http client libraries of Java but unable to implement the DELETE method with payload. Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 08:06:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/sdn-delete-flow-rest-in-java/m-p/6751746#M783</guid>
      <dc:creator>Avimanyu</dc:creator>
      <dc:date>2015-06-02T08:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: SDN Delete Flow REST in Java</title>
      <link>https://community.hpe.com/t5/software-defined-networking/sdn-delete-flow-rest-in-java/m-p/6761635#M800</link>
      <description>&lt;P&gt;Hi Avimany,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a &lt;A href="http://curl.haxx.se/libcurl/java/" target="_blank"&gt;Java wrapper &lt;/A&gt;for libcurl. Since it's implemented&amp;nbsp;on libcurl, anything that works with cURL also works with libcurl. For an example of using libcurl (in C, regrettably not in Java, but the&amp;nbsp;principle should be the same) see &lt;A href="https://community.hpe.com/t5/SDN-Discussions/HP-SDN-VAN-Controller-V2-0-0-4253-Token-Generation-using-LIB/m-p/6682759#M617" target="_blank"&gt;here&lt;/A&gt;. Let me know whether this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wouter&lt;/P&gt;&lt;P&gt;HP SDN CoE Team&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jul 2015 11:28:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/sdn-delete-flow-rest-in-java/m-p/6761635#M800</guid>
      <dc:creator>Joetel</dc:creator>
      <dc:date>2015-07-03T11:28:07Z</dc:date>
    </item>
  </channel>
</rss>

