[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ftpapi Digest, Vol 118, Issue 9

   I'm looking for a POST option that will write the response to the IFS
   (archive) and also allow me to bring the results into memory. Looks
   like http_url_post_xml would do that for me with one exception in that
   it tries to parse the response for me and not all of my responses will
   be XML. Is there a switch/flag something that would tell this process
   not to parse the response? I received back in the log (SetError() #66:
   XML parse failed at line 1, col 0: syntax error ).

   So move to second option of using _RAW just to get the data back and it
   looks like it work great and returns the data as I hoped.

   Then I get the error "Receiver value too small to hold result.
   " in Module:   HTTPAPIR4 "saveProc". (see below)

   I also tried opening a file and pass the FD instead of "1" as I saw in
   examples but maybe I used wrong options.

   fd = open(IFS: O_WRONLY+O_TRUNC+O_CREAT+O_CCSID: 511: 819);

   Any help using eithe option would be appreciated.



   rc = http_url_post_raw(%Trim(url)
             : %addr(postData) + 2
             : %len(PostData)
             : 1
             : %paddr(Incoming)
             : HTTP_TIMEOUT
             : HTTP_USERAGENT
             : 'Salem05210/SLM');

    P Incoming        B

    D Incoming        PI

    D   descriptor                  10I 0 value

    D   data                      8192A   options(*varsize)

    D   datalen                     10I 0 value

    D TO_ASCII        C                   '1'

    D TO_EBCDIC       C                   '2'


            rc =  http_xlate( datalen
                            : Data
                            : TO_EBCDIC  );

           data = data;
   P                 E

   Program:   HTTPAPIR4      Library:   LIBHTTP        Module:   HTTPAPIR4

     4709       4708

     4710       4709 c                   eval      rc = saveproc( peFD

     4711       4710 c                                          :
     4712       4711 c                                          : wwLen )

     4713       4712

     4714       4713 c                   if        HTTP_DEBUG_LEVEL > 1

     4715       4714 c                   callp     http_dmsg('recvdoc():
     4716       4715 c                                %char(rc) + '
     4717       4716 c                   endif

     4718       4717 c

     4719       4718 c                   if        rc < wwLen

     4720       4719 c                   callp     SetError(HTTP_RDWERR

   Debug . . .

   F3=End program   F6=Add/Clear breakpoint   F10=Step   F11=Display
   F12=Resume       F17=Watch variable   F18=Work with watch   F24=More
   Receiver value too small to hold result.
This is the FTPAPI mailing list.  To unsubscribe, please go to: