use http 1.0 for posts!

SVN revision: 67760
This commit is contained in:
Carsten Haitzler 2012-02-08 13:26:08 +00:00
parent 5aae4607ea
commit b0b7bea223
1 changed files with 4 additions and 0 deletions

View File

@ -453,6 +453,10 @@ _win_share_cb(void *data __UNUSED__, void *data2 __UNUSED__)
(ECORE_CON_EVENT_URL_COMPLETE, _upload_complete_cb, NULL));
url_up = ecore_con_url_new("http://www.enlightenment.org/shot.php");
// why use http 1.1? proxies like squid don't handle 1.1 posts with expect
// like curl uses by default, so go to 1.0 and this all works dandily
// out of the box
ecore_con_url_http_version_set(url_up, ECORE_CON_URL_HTTP_VERSION_1_0);
ecore_con_url_post(url_up, fdata, fsize, "application/x-e-shot");
dia = e_dialog_new(scon, "E", "_e_shot_share");