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

RE: Displaying HTTPAPI generated HTML



  // Note:  http_debug(*ON/*OFF) can be used to turn debugging
  //        on and off.  When debugging is turned on, diagnostic
  //        info is written to an IfS file named
  //        /tmp/httpapi_debug.txt
     http_debug(*OFF);

Walker Powell
Pacer IT
6805 Perimeter Drive
Dublin, OH 43016
walker.powell@xxxxxxxxx
Office: 614.356.1257
Cell: 614.738.8186
Fax: 614.923.1442






> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Holmes, Worth
> Sent: Wed, June 01, 2011 1:35 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: RE: Displaying HTTPAPI generated HTML
>
> How do you create a debug file?
>
> Worth Holmes
> Extn 1656
> (817) 938-3889
>
>
> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
> Klement
> Sent: Wednesday, June 01, 2011 11:58 AM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: Displaying HTTPAPI generated HTML
>
> Please create a debug file.
>
>
> On 6/1/2011 11:02 AM, Holmes, Worth wrote:
> >
> >     How do most of you display the request HTML generated by HTTPAPI?
> >
> >
> >     I am getting the following error:
> >
> >
> >     HTTP/1.1 400 Bad request
> >
> >
> >     I received this after executing the following within an RPG
> program:
> >     (rc was 400)
> >
> >
> >     0105.00    Form =
> >     WEBFORM_open;
> >
> >     0106.00
> >
> >     0107.00    callp WEBFORM_SetVar(Form: 'id':
> >     UserID);
> >
> >     0108.00    callp WEBFORM_SetVar(Form: 'password':
> >     Password);
> >
> >     0109.00    callp WEBFORM_SetVar(Form: 'vinlist':
> >     VIN);
> >
> >     0110.00    callp WEBFORM_SetVar(Form: 'level':
> >     'full');
> >
> >     0111.00
> >
> >     0112.00    // The WEBFORM_postData() routine retrieves data
> suitable
> >     for
> >
> >     0113.00    // the http_url_post()
> >     API.
> >
> >     0114.00
> >
> >     0115.00    callp WEBFORM_postData(Form: myPointer:
> >     dataSize);
> >
> >     0116.00
> >
> >     0117.00    //  The http_url_post() function does an HTTP POST
> >     operation
> >
> >     0118.00    //  sending any data at the pointer you
> >     specify.
> >
> >     0119.00
> >
> >     0120.00    //  The results, in this case, are saved to the IFS in
> >     Filename
> >
> >     0121.00    //  like '/qdls/Temp/VIN123456.xml' which is last 6
> char of
> >     vin.
> >
> >     0122.00
> >
> >     0123.00    Filename = '/qdls/Temp/VIN' + %subst(vin:12:6) +
> >     '.xml';
> >
> >     0124.00
> >
> >     0125.00    rc =
> >     http_url_post('http://www.experian.com/ais/servlets/VHRXML'
> >
> >     0126.00                        :
> >     myPointer
> >
> >     0127.00                        :
> >     dataSize
> >
> >     0128.00                        :
> >     Filename
> >
> >     0129.00                        :
> >     HTTP_TIMEOUT);
> >
> >     0130.00
> >
> >     0131.00      if rc =
> >     302;
> >
> >     0132.00         rc = http_url_get(http_redir_loc  :
> >     Filename);
> >
> >     0133.00      endif;
> >
> >
> >     Worth Holmes | Sr. Programmer / Analyst |  UNITRIN SPECIALTY
> >     8360 LBJ Freeway Suite 400 | Dallas, TX 75243 | (: 800-456-1919
> >     ext. 1656 | *: wholmes1@xxxxxxxxxxx |
> >
> >
> >     CONFIDENTIALITY NOTICE: This communication may contain
> confidential
> >     information intended only for the addressee(s). If you received
> this
> >     communication in error, please notify the sender and delete it
> from
> >     your system.
> >
> >
> >
> >
> >
> -----------------------------------------------------------------------
> > 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
> -----------------------------------------------------------------------
>
> CONFIDENTIALITY NOTICE: This communication may contain confidential
> information intended only for the addressee(s). If you received this
> communication in error, please notify the sender and delete it from
> your system.
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------

This message may contain confidential information and is intended only for the individual to whom it is addressed.  If you are not the named addressee, you should not use, disseminate or copy this e-mail.  Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.  E-mail transmission cannot be guaranteed to be secure or free from errors or viruses.  The sender therefore does not accept liability for problems with this message that arise out of e-mail transmission.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------