efl_net_dialer_http: allow incompatible configurations such as GET + upload.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 29 Aug 2016 17:50:33 +0000 (14:50 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Tue, 30 Aug 2016 03:35:45 +0000 (00:35 -0300)
commitf1c691d0f54c13ad76163ce419cbc54f2b3b2afc
tree15e95577cb271bb9f709fd40b7b5106737e301eb
parentfba2743361d5a149f9d9ccc7642dc209da523c01
efl_net_dialer_http: allow incompatible configurations such as GET + upload.

CURL is smart and when you ask for CURLOPT_HTTPGET, it will
automatically configure UPLOAD=false. Likewise, if you ask for
UPLOAD=1 it will configure CURLOPT_PUT...

However, to do things like WebSocket we need to do a GET request where
we need to send data, then UPLOAD=true must be used.

Then use both information in order to setup the request method and
upload, using CURLOPT_CUSTOMREQUEST to force a given HTTP method.
src/lib/ecore_con/efl_net_dialer_http.c