Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #7356

Re: Open url with Http Method POST

From "Jamal" <someone@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Open url with Http Method POST
Date 2014-10-26 16:46 -0400
Organization Aioe.org NNTP Server
Message-ID <m2jmii$gt5$1@speranza.aioe.org> (permalink)
References <lvee72$vb9$1@news.albasani.net>

Show all headers | View raw


Here is a sample:

LOCAL XMLReq AS OBJECT

LOCAL strStatus AS INT
LOCAL aRetval AS ARRAY
LOCAL xmlbody AS STRING
LOCAL cPostData AS STRING


       XMLReq := OLEAutoObject{"Microsoft.XMLHTTP"}


        XMLReq:open("POST", cURL + cPostData, FALSE)      // cPostData must 
begin with ? first first query string, then separate with & for rest of 
query strings

        XMLReq:setRequestHeader("Content-Type", 
"application/x-www-form-urlencoded" )  // content-type will vary based on 
expected post data.

        XMLReq:Send(xmlbody)

        strStatus := XMLReq:status

        aRetval := String2array(XMLReq:responseText, ",")

Jamal

"Fred Killet"  wrote in message news:lvee72$vb9$1@news.albasani.net...

Hello,

I like to send some data from a Visual Objects program to an URL using the
POST method.

How to do that with the GET method I know:
ShellExecute(SELF:handle(),PSZ("open"),PSZ(cText),NULL,NULL,SW_SHOWNORMAL)

But is there a way to do it with the POST method? Is there an example?

Thanks for your help.


Fred Killet
killet-nospam@killetsoft.de


---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus 
Schutz ist aktiv.
http://www.avast.com 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Open url with Http Method POST "Fred Killet" <info@killetsoft.de> - 2014-09-18 13:04 +0200
  Re: Open url with Http Method POST JohnMartens <martens@tennishulp.info> - 2014-09-18 13:17 +0200
    Re: Open url with Http Method POST "Fred Killet" <info@killetsoft.de> - 2014-09-19 16:21 +0200
  Re: Open url with Http Method POST Kuno Egger <kuno@retailsoftware.com> - 2014-10-25 14:44 -0700
    Re: Open url with Http Method POST norbert@kolb.cx - 2014-10-26 15:47 -0700
      Re: Open url with Http Method POST Kuno Egger <kuno@retailsoftware.com> - 2014-10-28 19:51 -0700
        Re: Open url with Http Method POST Mathias <mathias.hakansson@consultec.se> - 2014-10-28 23:36 -0700
        Re: Open url with Http Method POST norbert@kolb.cx - 2014-10-29 14:58 -0700
          Re: Open url with Http Method POST Kuno Egger <kuno@retailsoftware.com> - 2014-10-30 13:48 -0700
            Re: Open url with Http Method POST Kuno Egger <kuno@retailsoftware.com> - 2014-10-30 14:49 -0700
              Re: Open url with Http Method POST norbert@kolb.cx - 2014-10-30 17:43 -0700
                Re: Open url with Http Method POST Kuno Egger <kuno@retailsoftware.com> - 2014-10-31 10:38 -0700
  Re: Open url with Http Method POST Sherlock <sherlock@sherlock.com.au> - 2014-10-26 03:30 -0700
  Re: Open url with Http Method POST "Jamal" <someone@example.com> - 2014-10-26 16:46 -0400
  Re: Open url with Http Method POST sherlocksoftwaresales@gmail.com - 2014-10-28 23:15 -0700

csiph-web