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

Rif: RE: http_url_get problem



   That's ok.
   Now I received the message. Never received the previous one!
   Ok, I would like to going deep in this problem.
   This is the code:
        D  req            S           1000A   based(myPointer)
        D  url            S           1000A   varying
          enc = http_url_encoder_new();   // create encoder
                                          // encode variables
          http_url_encoder_addvar_s( enc
                                   : 'locpartenza'
                                   : locpartenza );
          http_url_encoder_addvar_s( enc
                                   : 'NumSped'
                                   : numsped );
          http_url_encoder_addvar_s( enc
                                   : 'CodCli'
                                   : codcli );
          http_url_encoder_getptr( enc
                                 : myPointer
                                 : dataSize );
                                          // create URL
          url = 'http://www.gls-italy.com'
                 + '/scripts/cgiip.exe/get_xml_track.p?';
          url = %trim(url) + %trim(req);
                                          // set codepage
          http_SetCCSIDs( 00819 : 0 );
                                                         // call the
   service
          rc = http_url_get( %trim(url)
                             : 'gls_tracking_get.xml' );
                                                     // frees memory
          http_url_encoder_free( enc );
   Is this wrong?
   Thank you for your kind patience.
   Roberto Tempesti / Igea Spa

   "Porterfield, Sean" <SPorterfield@xxxxxxxxxxxxxxxxxxxxxxx>
   Inviato da: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx

   29/11/2012 17.07
   Per favore, rispondere a HTTPAPI and FTPAPI Projects

           Per:        HTTPAPI and FTPAPI Projects
   <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
           Cc:
           Oggetto:        RE: http_url_get problem

   > From: Roberto Tempesti
   > how can I replay to your answers?
   You reply as you would to any other email.
   > Anyway, I copied the example of Sean and it works fine.
   > So how did I build my program?
   > Well, I built the parameter part of the string with the function
   "http_url_encoder_addvar_s", maybe the problem is there?
   Basically what Scott and I were saying is we can't tell what you did
   wrong because you didn't post the code.  I copied the URL you had and
   put it into an old test program I had just to see what would happen.
   As you noticed, it worked fine.  All that tells us is you did something
   different that doesn't work.
   --
   Sean Porterfield
   This email is confidential, intended only for the named recipient(s)
   above and may contain information that is privileged.  If you have
   received this message in error or are not the named recipient(s),
   please notify the sender immediately and delete this email message from
   your computer as any and all unauthorized distribution or use of this
   message is strictly prohibited.  Thank you.
   -----------------------------------------------------------------------
   This is the FTPAPI mailing list.  To unsubscribe, please go to:
   http://www.scottklement.com/mailman/listinfo/ftpapi
   -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------