From c115b27b8625ce2b917cf02b7c913e08c050bcc7 Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Sun, 24 Sep 2017 20:37:53 +0000 Subject: [PATCH] HTTP library POST method example: use HTTP_send function git-svn-id: svn://kolibrios.org@7008 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/libraries/http/examples/post.asm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/programs/develop/libraries/http/examples/post.asm b/programs/develop/libraries/http/examples/post.asm index 9869342291..52f8464bfb 100644 --- a/programs/develop/libraries/http/examples/post.asm +++ b/programs/develop/libraries/http/examples/post.asm @@ -1,9 +1,10 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; Copyright (C) KolibriOS team 2014-2015. All rights reserved. ;; +;; Copyright (C) KolibriOS team 2014-2017. All rights reserved. ;; ;; Distributed under terms of the GNU General Public License ;; ;; ;; -;; pasta.asm - Paste something to paste.kolibrios.org using POST ;; +;; post.asm - HTTP library example: ;; +;; Paste something to paste.kolibrios.org using HTTP POST method.;; ;; ;; ;; GNU GENERAL PUBLIC LICENSE ;; ;; Version 2, June 1991 ;; @@ -83,8 +84,7 @@ START: jz error mov [identifier], eax - mov ecx, [eax + http_msg.socket] - mcall 75, 6, , sz_paste, sz_paste.length, 0 + invoke HTTP_send, eax, sz_paste, sz_paste.length .again2: invoke HTTP_receive, [identifier] @@ -145,6 +145,7 @@ import lib_http, \ HTTP_post, 'post', \ HTTP_receive, 'receive', \ HTTP_find_header_field, 'find_header_field', \ + HTTP_send, 'send', \ HTTP_free, 'free'