If you're trying to use tiny URL to get a shorter command line, you could consider something like our iSeries Office Integrator product.
You would just build up the regular URL string and call it to pop up the document unless you're trying to download the URL to the IFS in which case you wouldn't need tiny URL at all.
You can request a 30 day trial of iSeries Office Integrator if interested in at least seeing how it works.
Could also roll your own Sockets based solution if you have the time :-)
Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site:
http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
------------------------------
message: 7
date: Wed, 15 Jun 2011 16:26:43 -0400
from: "Smith, Mike" <Mike_Smith@xxxxxxxxxxxxxxxx>
subject: Httpapi and tinyurl
I have a project where I need to call a url(that accesses our document
management system) from within an RPG program.
I have experimented with building a .bat file before but I don't like
that solution, so I thought about using TINYURL to return a shorter link
that I can call.
So do to that I thought I would use Scotts HTTPAPI stuff.
I have this mostly working, but I'm not getting the correct link back
from tinyurl.
So I have this
'
http://rgc-filenexus/FileNexus/BrowserClient/directlink.aspx?fid=58&cid
=32&iid=23&iv=100377101'
I expect to get back this from TinyUrl
http://tinyurl.com/3ohj5m4
Instead I'm getting
http://tinyurl.com/3o7lzto
Which translates to this
'
http://rgc-filenexus/FileNexus/BrowserClient/directlink.aspx?fid=58'
I have been through the program and I don't see anywhere where I'm
truncating anything. Any idea why this is happening?
Basics of the code are below
C Eval URL = '
http://rgc-filenexus/FileNexus/+
C BrowserClient/directlink.aspx?+
C fid=58&cid=32&iid=23&iv=100377101'
C** The only diff between using HTTPwserClientg HTTP is
C** the URL that we pass. It starts with 'https://'
C Eval PostURL = '
http://tinyurl.com/api-+
C create.php?url='
C Eval PostData = URL
C
C callp HTTP_SetFileCCSID(819)
C Eval rc = http_url_post(%trim(PostURL) +
C %trim(postdata)
C : mypointer
C : %len(PostData)
C : logfile
C : HTTP_TIMEOUT
C : HTTP_USERAGENT)
Thanks
Mike
As an Amazon Associate we earn from qualifying purchases.