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

RE: Getting currency rates



   HI The HTTPAPI has been working perfectly until today. Suddenly we
   cannot run it getting this error message:

   HTTP/1.1 302 Found
   CPF9897 received by OFOREX at 800. (C D I R)

   I checked with the network admin and he said he did not change a
   thing.

   I was wondering what could be the cause of this error message.
   --- On Wed, 7/9/08, Adam West <adamster@xxxxxxxxx> wrote:

     From: Adam West <adamster@xxxxxxxxx>
     Subject: RE: Getting currency rates
     To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
     Date: Wednesday, July 9, 2008, 5:55 PM

   I think also to put it kindly, the NA is not, his experience is only
   in this one small shop for his entire work experience, so he has
   limitations.
   --- On Wed, 7/9/08, Craig Jacobsen <CJacobsen@xxxxxxxxxxxxx> wrote:

     From: Craig Jacobsen <CJacobsen@xxxxxxxxxxxxx>
     Subject: RE: Getting currency rates
     To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
     Date: Wednesday, July 9, 2008, 4:12 PM
Adam,

I can't believe your network people will not allow the i to handle some
http functions.
Did you talk to your boss about this?
The i is very secure so I don't see that as a problem.
Your company would rather pay for delivery of a very small table (file)
than open up a gateway through Iprism?
This just doesn't make any business sense.

Craig


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Wilt,
Charles
Sent: Wednesday, July 09, 2008 10:17 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: Getting currency rates

Mike or whoever would have to get probably need permission from xurrency
to resell the data.

In fact, it should be pointed out that the license for xurrency says:

License Data Feed
Xurrency is free for personal use

Feel free to use our data feed for your personal use. Anyway, we accept
donations of any type (all are welcome). We have created this donation
section for that purpose. Donations are entirely voluntary, but
certainly help us improve the service.

Commercial Use
We still need to keep the lights on and the servers humming though. If
you want to use Xurrency for some commercial use, please contact us.



Charles Wilt
--
Software Engineer
CINTAS Corporation - IT 92B
513.701.1307

wiltc@xxxxxxxxxx


> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Adam West
> Sent: Wednesday, July 09, 2008 10:01 AM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: Getting currency rates
>
> Mike, if you or someone else can run this program and place it for us
> to pickup via FTP, I can get the company to pay you a small monthly
> rate, say in the neighborhood of $25 per month. Please contact off
> line and I will pass along to the Senior Programmer.
>
> --- On Tue, 7/8/08, Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx> wrote:
>
> From: Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
> Subject: Getting currency rates
> To: "'HTTPAPI and FTPAPI Projects'"
<ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
> Date: Tuesday, July 8, 2008, 9:34 PM
>
> Adam and anyone else interested in currency!
>
> >>    GET /usd/feed HTTP/1.1
> >>    Host: xurrency.com
>
> After seeing what you were trying to do
> (http://www.scottklement.com/archives/ftpapi/200807/msg00014.html), I
> just had to give it a go. Works good when you're not blocked by a
> firewall ;)
>
> Mike Krebs
>
> Here is the program adapted from example15 if anyone else wants to
> have a go. BTW, there is much more that is returned in the XML--view
> the source of http://xurrency.com/usd/feed to see other elements.
>
>
>      H DFTACTGRP(*NO) BNDDIR('HTTPAPI')
>
>
>
>      FQSYSPRT   O    F  132        PRINTER OFLIND(*INOF)
>
>
>
>       /copy qrpglesrc,httpapi_h
>
>       /copy qrpglesrc,ifsio_h
>
>
>
>      D Incoming        PR
>
>      D   userdata                      *   value
>
>      D   depth                       10I 0 value
>
>      D   name                      1024A   varying const
>
>      D   path                     24576A   varying const
>
>      D   value                    65535A   varying const
>
>      D   Attrs                         *   dim(32767)
>
>      D                                     const options(*varsize)
>
>
>
>      D num             s             10I 0
>
>      D item            ds                  occurs(40)
>
>      D   title                      512A   varying
>
>
>
>      D msg             s             50A
>
>      D rc              s             10I 0
>
>      D url             s            100A   varying
>
>      D PrintLine       s            132A
>
>      D x               s             10I 0
>
>      D filename        s             45A   varying
>
>
>
>       /free
>
>
>
>         *inlr = *on;
>
>
>
>         // ****************************************************
>
>         //  Download the latest exchange rates
>
>         // ****************************************************
>
>         url = 'http://xurrency.com/usd/feed';
>
>         filename = http_tempfile() + '.xml';
>
>
>
>         rc = http_url_get( url : filename );
>
>         if (rc <> 1);
>
>            PrintLine = http_error();
>
>            except;
>
>            unlink(filename);
>
>            return;
>
>         endif;
>
>
>
>         // ****************************************************
>
>         //   parse the XML from the temp file.
>
>         // ****************************************************
>
>
>
>         if (http_parse_xml_stmf( filename
>
>                                : HTTP_XML_CALC
>
>                                : *null
>
>                                : %paddr(Incoming)
>
>                                : *null ) < 0 );
>
>            PrintLine = http_error();
>
>            except;
>
>            unlink(filename);
>
>            return;
>
>         endif;
>
>
>
>         // ****************************************************
>
>         //  Print the currency
>
>         //
>
>         // ****************************************************
>
>
>
>         for x = 1 to num;
>
>            %occur(item) = x;
>
>            PrintLine = title;
>
>            except;
>
>         endfor;
>
>
>
>         unlink(filename);
>
>         return;
>
>
>
>       /end-free
>
>
>
>      OQSYSPRT   E
>
>      O                       PrintLine          132
>
>
>
>
>
>
> *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>       *  This is called for each XML element that's received in the
>
>       *  document.
>
>       *
>
>       *
>
>       *  The VALUE parameter gives us the text that's inside that
>
>       *  element.
>
>
> *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>      P Incoming        B
>
>      D Incoming        PI
>
>      D   userdata                      *   value
>
>      D   depth                       10I 0 value
>
>      D   name                      1024A   varying const
>
>      D   path                     24576A   varying const
>
>      D   value                    65535A   varying const
>
>      D   attrs                         *   dim(32767)
>
>      D                                     const options(*varsize)
>
>
>
>      D count           s             10I 0
>
>      D attrname        s            100A   varying
>
>      D attrval         s            100A   varying
>
>       /free
>
>
>
>             select;
>
>             when name = 'dc:simpleTitle';
>
>                num = num + 1;
>
>                %occur(item) = num;
>
>                title = value;
>
>             endsl;
>
>
>
>       /end-free
>
>      P                 E
>
> And the output:
>
> 1 USD = 0.6389 EUR
> 1 USD = 0.5088 GBP
> 1 USD = 1.0455 AUD
> 1 USD = 1.6000 BRL
> 1 USD = 1.3278 NZD
> 1 USD = 1.0216 CAD
> 1 USD = 1.0318 CHF
> 1 USD = 6.8681 CNY
> 1 USD = 4.7642 DKK
> 1 USD = 7.8003 HKD
> 1 USD = 43.2900 INR
> 1 USD = 107.5269 JPY
> 1 USD = 1000.0000 KRW
> 1 USD = 107.5269 LKR
> 1 USD = 10.3199 MXN
> 1 USD = 3.2658 MYR
> 1 USD = 5.1020 NOK
> 1 USD = 6.0096 SEK
> 1 USD = 1.3643 SGD
> 1 USD = 33.6700 THB
> 1 USD = 30.3951 TWD
> 1 USD = 2.1445 VEF
> 1 USD = 7.7459 ZAR
> 1 USD = 1.2497 BGN
> 1 USD = 15.0376 CZK
> 1 USD = 10.0000 EEK
> 1 USD = 149.2537 HUF
> 1 USD = 2.2060 LTL
> 1 USD = 0.4497 LVL
> 1 USD = 2.1155 PLN
> 1 USD = 2.3020 RON
> 1 USD = 19.3424 SKK
> 1 USD = 4.6275 ISK
> 1 USD = 76.9231 HRK
> 1 USD = 23.5294 RUB
> 1 USD = 1.2284 TRY
> 1 USD = 45.6621 PHP
> 1 USD = 2000.0000 COP
> 1 USD = 3.1646 ARS
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
>
>
>


This e-mail transmission contains information that is intended to be
confidential and privileged.  If you receive this e-mail and you are not
a named addressee you are hereby notified that you are not authorized to
read, print, retain, copy or disseminate this communication without the
consent of the sender and that doing so is prohibited and may be
unlawful.  Please reply to the message immediately by informing the
sender that the message was misdirected.  After replying, please delete
and otherwise erase it and any attachments from your computer system.
Your assistance in correcting this error is appreciated.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

Confidentiality Notice: This e-mail message, including any attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.  Unless expressly stated in this e-mail, nothing in this message or
any attachment should be construed as a digital or electronic signature.
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------