Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
Ниужели никто не пытался делать программную загрузку на фото хостинго.
Не обязательно на image2you.ru может и на другие.
Это делает опера.
POST /cabinet/upload/ HTTP/1.1
User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.01
Host: image2you.ru
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Expect: 100-continue
Referer: http://image2you.ru/cabinet/upload/
Cookie: PHPSESSID=pgfeqq67jaastbjf9srjc6mkk6
Cookie2: $Version=1
Connection: Keep-Alive, TE
TE: deflate, gzip, chunked, identity, trailers
Content-Length: 30211
Content-Type: multipart/form-data; boundary=----------elF5oPbsX2GYd2LuNSPnJe
------------elF5oPbsX2GYd2LuNSPnJe
Content-Disposition: form-data; name="image_name"
1
------------elF5oPbsX2GYd2LuNSPnJe
Content-Disposition: form-data; name="image"; filename="245.jpg"
Content-Type: image/jpeg
яШяа JFIF яю ;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 85
яЫ C !"$"$яЫ CяА ђM" яД
яД µ } !1AQa"q2Ѓ‘Ў#B±БRСр$3br‚
----------------------------//--------------------------------------------------
------------elF5oPbsX2GYd2LuNSPnJe
Content-Disposition: form-data; name="Submit"
Загрузить на сервер
------------elF5oPbsX2GYd2LuNSPnJe--
Моя программа.
POST /cabinet/upload/ HTTP/1.1
Referer: http://www.image2you.ru/cabinet/upload/
Cache-Control: no-cache
Cookie: PHPSESSID=ahv9fvmgs6jg1i2unddqr77ps5; path=/
User-Agent: Opera/9.80 (Windows NT 6.1; U; en) Presto/2.2.15 Version/10.01
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: ru-RU,ru;q=0.9,en;q=0.8
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Content-Type: multipart/form-data; boundary=----------8cc288e4573e11e
Host: www.image2you.ru
Content-Length: 51488
Expect: 100-continue
Connection: Keep-Alive
------------8cc288e4573e11e
Content-Disposition: form-data; name="image_name"
22
------------8cc288e4573e11e
Content-Disposition: form-data; name="uploadfile"; filename="71.jpg"
Content-Type: image/pjpeg
яШяа JFIF яю ;CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 85
яЫ C !"$"$яЫ CяА ЏX" яД
яД µ } !1AQa"q2Ѓ‘Ў#B±БRСр$3br‚
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzѓ„…†‡€‰Љ’“”•–—˜™љўЈ¤Ґ¦§Ё©ЄІіґµ¶·ё№єВГДЕЖЗИЙКТУФХЦЧШЩЪбвгдежзийкстуфхцчшщъяД
яД µ w !1AQaq"2ЃB‘Ў±Б #3RрbrС
$4б%с&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ѓ„…†‡€‰Љ’“”•–—˜™љўЈ¤Ґ¦§Ё©ЄІіґµ¶·ё
----------------------------//--------------------------------------------------
------------8cc288e4573e11e
Content-Disposition: form-data; name="Submit"
Загрузить на сервер
------------8cc288e4573e11e--
StringBuilder sb = new StringBuilder();
//sb.Append("--");
sb.Append("--" + boundary);
sb.Append("\r\n");
sb.Append("Content-Disposition: form-data; name=\"image_name\"");
sb.Append("\r\n\r\n");
sb.Append("22");
sb.Append("\r\n");
sb.Append("--" + boundary);
sb.Append("\r\n");
sb.Append("Content-Disposition: form-data; name=\"image\"; filename=\"");
sb.Append(Path.GetFileName(uploadfile));
sb.Append("\"");
sb.Append("\r\n");
sb.Append("Content-Type: ");
sb.Append(contenttype);
sb.Append("\r\n");
sb.Append("\r\n");