566

HTTP POST

Salut lume.Am сautat prin RFC la descrierea HTTP-ului (1.0 si 1.1) dar n-am gasit informatia cautata de mine. Am nevoie sa stiu toate tipurile de forme si cum poate fi trimisa informatia la un HTTP server prin metoda POST. De exemplu===============================================POST /Regedit.aspx?pid=134 HTTP/1.1User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.50 [en]Host: www.yes.mdAccept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1Accept-Language: enAccept-Charset: windows-1252, utf-8, utf-16, iso-8859-1;q=0.6, *;q=0.1Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0Expect: 100-continueReferer: http://www.yes.md/Regedit.aspx?pid=134Cookie: ASP.NET_SessionId=u4if3oz14t4vog45hc0kcgzdCookie2: $Version=1Connection: Keep-Alive, TETE: deflate, gzip, chunked, identity, trailersContent-Length: 16007Content-Type: multipart/form-data; boundary=----------w38LLVL8dH77jlt1oFWvpnHTTP/1.1 100 Continue------------w38LLVL8dH77jlt1oFWvpnContent-Disposition: form-data; name="__SCROLLPOS"------------w38LLVL8dH77jlt1oFWvpnContent-Disposition: form-data; name="Defaulttemplate1:_ctl4:txtNewPasswd"------------w38LLVL8dH77jlt1oFWvpnContent-Disposition: form-data; name="Defaulttemplate1:_ctl4:txtNewPasswd1"------------w38LLVL8dH77jlt1oFWvpnContent-Disposition: form-data; name="Defaulttemplate1:_ctl4:txtREmail"===============================================Adica din cate observati acum e multipart/form-data. De fapt ca sa intelegi mai bine va spun pentru ce imi trebuie mia asta. Trebuie sa fac un `mini web server` care trateaza GET si POST metodele. Trebuie sa-l fac crossplatform (ei da aasta nu conteaza). POST imi trebuie pentru ca sa pot transmite fisiere mari cu anumita informatie. Daca ati inteles intrebarea mea, please help :-)
0