<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: URL decoding in DCL with Apache in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060061#M38099</link>
    <description>IIRC, There is a utility CGIUTL that will do some of the work. It originates from WASD but might work for SWS as well. I;m not sure it is still fully available, I didn'tsee it on the regular WASD page but it is in the archives. (I have used the CGILIB library that is part of this uitility successfully with images running under SWS (and WASD and OSU) so ith might solve part of your problem)</description>
    <pubDate>Fri, 27 Jul 2007 02:04:26 GMT</pubDate>
    <dc:creator>Willem Grooters</dc:creator>
    <dc:date>2007-07-27T02:04:26Z</dc:date>
    <item>
      <title>URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060052#M38090</link>
      <description>Has anyone put together a script to decode URLs in forms for DCL?  I will be doing this with both GET and POST methods.  I know Hoff has an example in his/Paul A.'s book, but I can't get a copy.</description>
      <pubDate>Thu, 26 Jul 2007 09:52:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060052#M38090</guid>
      <dc:creator>Stephen Eickhoff_1</dc:creator>
      <dc:date>2007-07-26T09:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060053#M38091</link>
      <description>Having done this in DCL, I'd not suggest this in DCL.  I'd use perl or php or some other language specifically suited for this task. It's just easier, as these languages have readily available and these languages also have battle-hardened URL decoding support.&lt;BR /&gt;&lt;BR /&gt;That written, a simple URL decode routine is probably a hundred lines of DCL; it's not a big deal.&lt;BR /&gt;&lt;BR /&gt;If there are no other responses or pointers posted here, I'll post up some URL code in a week or so (depending on other project and other scheduled work), over at the HL site.  (I've previously posted a basic DCL CGI topic, and forms- and URL-work would be a logical extension.)&lt;BR /&gt;&lt;BR /&gt;The status of the DCL book is murky; I've not received a release or a notification from DP, indicating they're now done with it.  But it's out of print.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 10:54:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060053#M38091</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-07-26T10:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060054#M38092</link>
      <description>Thanks, Hoff.  The PHP with CSWS is based on 4.3.10 and therefore woefully out of date; but then, properly written perl looks like line noise so I think I'll start learning PHP instead.  My plan was to get this very, very small site deployed with DCL and port over to PHP or perl.&lt;BR /&gt;&lt;BR /&gt;I've seen code examples for perl that are about ten lines.  Why does it take 100 in DCL?</description>
      <pubDate>Thu, 26 Jul 2007 11:15:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060054#M38092</guid>
      <dc:creator>Stephen Eickhoff_1</dc:creator>
      <dc:date>2007-07-26T11:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060055#M38093</link>
      <description>Can you give an example of what you mean by&lt;BR /&gt;"decode URLs"?</description>
      <pubDate>Thu, 26 Jul 2007 13:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060055#M38093</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-07-26T13:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060056#M38094</link>
      <description>I'm assuming the question is around processing URL-encoded text.  The ampersand-encoded parameters used during form submission.&lt;BR /&gt;&lt;BR /&gt;And the reason it takes about a hundred lines is because DCL doesn't have a call-out capability, nor CGI-related extensions nor a library facility.  So you roll explicit code in DCL, or you call into an executable image written in a compiled language, or you use perl or php or such.  &lt;BR /&gt;&lt;BR /&gt;Yes, php 4.3.10 is out-of-date.  DCL itself is older.&lt;BR /&gt;&lt;BR /&gt;The VAMP site doesn't look to be reachable, and I don't know if that's transient or permanent condition.  On various other platforms, the xAMP sites have a packaged download containing all the giblets -- this for the platforms that don't have the xAMP giblets built into the base distro.&lt;BR /&gt;&lt;BR /&gt;For some details on URL encoding, see&lt;BR /&gt;&lt;A href="http://en.wikipedia.org/wiki/Percent-encoding" target="_blank"&gt;http://en.wikipedia.org/wiki/Percent-encoding&lt;/A&gt;&lt;BR /&gt;and a small herd of RFCs.</description>
      <pubDate>Thu, 26 Jul 2007 14:11:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060056#M38094</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2007-07-26T14:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060057#M38095</link>
      <description>&amp;gt; I'm assuming [...]&lt;BR /&gt;&lt;BR /&gt;I've watched "Desk Set" enough times to have&lt;BR /&gt;the phrase "never assume" well implanted in&lt;BR /&gt;my head.&lt;BR /&gt;&lt;BR /&gt;I also wrote (4-DEC-2003) a DCL procedure to&lt;BR /&gt;handle a short test form when I was fooling&lt;BR /&gt;around with CGI, and an even simpler&lt;BR /&gt;procedure which I use to interpret the more&lt;BR /&gt;complexly coded stuff I see in my Web server&lt;BR /&gt;log.  Some of this might be useful to the&lt;BR /&gt;original questioner, but I can't tell from&lt;BR /&gt;his question what he really wants.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 14:53:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060057#M38095</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2007-07-26T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060058#M38096</link>
      <description>&lt;!--!*#--&gt;Stephen,&lt;BR /&gt;&lt;BR /&gt;If you mean decoding extract parameters from the url I wrote a small procedure to do this:&lt;BR /&gt;&lt;BR /&gt;$ url="http://test?a=1%44&amp;amp;b=x%21%23x&amp;amp;c="&lt;BR /&gt;$ query = f$element (1,"?",url)&lt;BR /&gt;$ if query.eqs."?" then goto done&lt;BR /&gt;$ paramidx = 0&lt;BR /&gt;$param_loop:&lt;BR /&gt;$ param=f$element (paramidx , "&amp;amp;" , query)&lt;BR /&gt;$ if param.eqs."&amp;amp;" then goto done&lt;BR /&gt;$ paramname=f$element (0,"=",param)&lt;BR /&gt;$ paramvalue=f$element (1,"=",param)&lt;BR /&gt;$ call decode "''paramname'" "pn"&lt;BR /&gt;$ call decode "''paramvalue'" "pv"&lt;BR /&gt;$! now you have the parameter name in the symbol PN&lt;BR /&gt;$! and the value in PV&lt;BR /&gt;$! substitute the next two lines with your code&lt;BR /&gt;$ write sys$output paramname,"=",paramvalue&lt;BR /&gt;$ write sys$output pn,"=",pv&lt;BR /&gt;$ paramidx = paramidx + 1&lt;BR /&gt;$ goto param_loop&lt;BR /&gt;$done:&lt;BR /&gt;$ exit&lt;BR /&gt;$decode: subroutine&lt;BR /&gt;$ val=""&lt;BR /&gt;$ rest=p1&lt;BR /&gt;$decodeloop:&lt;BR /&gt;$ part=f$element (0 , "%" , rest)&lt;BR /&gt;$ if part.eqs."%".or.part.eqs.rest&lt;BR /&gt;$ then&lt;BR /&gt;$   val = val + rest&lt;BR /&gt;$   'p2'==val&lt;BR /&gt;$   exit&lt;BR /&gt;$ else&lt;BR /&gt;$   rest = f$extract (f$length(part) + 1, f$length(rest) , rest)&lt;BR /&gt;$   xn = f$extract (0,2,rest)&lt;BR /&gt;$   c[0,8] = %x'xn'&lt;BR /&gt;$   val = val + part + c&lt;BR /&gt;$   rest = f$extract (2,f$length(rest),rest)&lt;BR /&gt;$ endif&lt;BR /&gt;$ goto decodeloop&lt;BR /&gt;$ endsubroutine&lt;BR /&gt;&lt;BR /&gt;It was not tested but you can see how to handle it. Also + signs are not converted to spaces!&lt;BR /&gt;&lt;BR /&gt;Bojan&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jul 2007 15:01:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060058#M38096</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2007-07-26T15:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060059#M38097</link>
      <description>I was looking for a method to decode the "URL encoding" used when forms are submitted, i.e. "%21" for "!".  I had already figured out how to use f$element to split the variables, but I didn't realize that the URL encoding followed the ASCII table and that I could use binary substitution to insert the character.  I got impatient and managed to put together something similar to Bojan's example about an hour before he posted it.  Thanks everyone!</description>
      <pubDate>Thu, 26 Jul 2007 15:40:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060059#M38097</guid>
      <dc:creator>Stephen Eickhoff_1</dc:creator>
      <dc:date>2007-07-26T15:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060060#M38098</link>
      <description>The full URL (that is: what's after the server name) can be found in environment variable URI_REQUEST. Next to do is get all elements out of this using F$ELEMENT with delimiter "/" - but you'll need to know the expected URL to get the right strating point.&lt;BR /&gt;After that, any part that could hold encoded chracaters could be examined and altered.&lt;BR /&gt;&lt;BR /&gt;(Altered real-life) exmaple:&lt;BR /&gt;&lt;BR /&gt;URL: http://server/cgi-bin/gateway/vxxx/1000/something?data1$data2"&lt;BR /&gt;or&lt;BR /&gt;&lt;FORM method="POST" action="https://community.hpe.com/cgi-bin/gateway/vxxx/1000/something?data1$data2"&gt;&lt;BR /&gt;&lt;BR /&gt;Apache delivers to CGI-script:&lt;BR /&gt;&lt;BR /&gt;URI_REQUEST="/cgi-bin/gateway/vxxx/1000/something?data1&amp;amp;data2"&lt;BR /&gt;&lt;BR /&gt;For this situation, the part after "gateway" is of interest, so extraction starts at poistion2:&lt;BR /&gt;&lt;BR /&gt;Vrs = f$element(2, "/",URI_REQUEST)&lt;BR /&gt;Adm = f$element(3, "/",URI_REQUEST)&lt;BR /&gt;Do  = f$element(4, "/",URI_REQUEST)&lt;BR /&gt;&lt;BR /&gt;and symbol Do is then further processed, in this case by the program that is started, but you can use any method.&lt;BR /&gt;&lt;/FORM&gt;</description>
      <pubDate>Fri, 27 Jul 2007 01:53:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060060#M38098</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2007-07-27T01:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060061#M38099</link>
      <description>IIRC, There is a utility CGIUTL that will do some of the work. It originates from WASD but might work for SWS as well. I;m not sure it is still fully available, I didn'tsee it on the regular WASD page but it is in the archives. (I have used the CGILIB library that is part of this uitility successfully with images running under SWS (and WASD and OSU) so ith might solve part of your problem)</description>
      <pubDate>Fri, 27 Jul 2007 02:04:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060061#M38099</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2007-07-27T02:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060062#M38100</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;CGIUTL is include in the source tree of WASD.&lt;BR /&gt;&lt;BR /&gt;If you just want to browse the source you can take a look at &lt;BR /&gt;&lt;A href="http://hg.vmspython.dyndns.org/wasd/" target="_blank"&gt;http://hg.vmspython.dyndns.org/wasd/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;CGIUTL is include in ht_root/src/misc (follow the link manifest)&lt;BR /&gt;&lt;BR /&gt;You can also download the full source tree from the official WASD site:&lt;BR /&gt;&lt;A href="http://wasd.vsm.com.au/wasd/" target="_blank"&gt;http://wasd.vsm.com.au/wasd/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;JF&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jul 2007 02:18:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060062#M38100</guid>
      <dc:creator>Jean-François Piéronne</dc:creator>
      <dc:date>2007-07-27T02:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060063#M38101</link>
      <description>I'm not sure that this meets your specific needs, but I'll mention that the topic of parsing came up in a previous ITRC thread entitled "DCL parameters in Apache under OpenVms":&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=624506" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=624506&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In particular, one of the messages in that thread has a DCL command procedure attached.&lt;BR /&gt;&lt;BR /&gt;- Duane&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 27 Jul 2007 20:26:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060063#M38101</guid>
      <dc:creator>Duane Sadowski</dc:creator>
      <dc:date>2007-07-27T20:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: URL decoding in DCL with Apache</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060064#M38102</link>
      <description>- Use CGIUTIL from WASD&lt;BR /&gt;- Use binary symbol assignment to insert/replace codes</description>
      <pubDate>Mon, 30 Jul 2007 08:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/url-decoding-in-dcl-with-apache/m-p/5060064#M38102</guid>
      <dc:creator>Stephen Eickhoff_1</dc:creator>
      <dc:date>2007-07-30T08:59:36Z</dc:date>
    </item>
  </channel>
</rss>

