<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=Cgiclient.Pl</id>
	<title>Cgiclient.Pl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=Cgiclient.Pl"/>
	<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=Cgiclient.Pl&amp;action=history"/>
	<updated>2026-04-29T00:45:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://pickwiki.org/index.php?title=Cgiclient.Pl&amp;diff=1688&amp;oldid=prev</id>
		<title>Conversion script: link fix</title>
		<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=Cgiclient.Pl&amp;diff=1688&amp;oldid=prev"/>
		<updated>2015-02-26T23:48:54Z</updated>

		<summary type="html">&lt;p&gt;link fix&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;SourceCode&amp;gt;&amp;gt;[[PerlSource]]&lt;br /&gt;
&lt;br /&gt;
A perl client to take form fields and transfer them over to a server equipped to deal with them...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sunset /usr/local/apache/share/cgi-bin&amp;gt; cat cgiclient.pl &lt;br /&gt;
#!/usr/local/bin/perl&lt;br /&gt;
&lt;br /&gt;
use CGI qw(:standard);&lt;br /&gt;
use IO::Socket;&lt;br /&gt;
&lt;br /&gt;
$|=1;&lt;br /&gt;
&lt;br /&gt;
print header();&lt;br /&gt;
&lt;br /&gt;
$server = IO::Socket::INET-&amp;gt;new(&amp;quot;sunset:1999&amp;quot;) or die &amp;quot;cgiclient.pl: $@\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$acc=param(&amp;quot;account&amp;quot;);&lt;br /&gt;
if ($acc eq &amp;quot;&amp;quot;) {&lt;br /&gt;
   print $client &amp;quot;&amp;lt;H1&amp;gt;Internal cgi error - must specify an account!&amp;lt;/H1&amp;gt;\n&amp;quot;;&lt;br /&gt;
   return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
print $server $acc,&amp;quot;\n&amp;quot;;&lt;br /&gt;
   &lt;br /&gt;
foreach $key (param()) {&lt;br /&gt;
   # This join is a little obscure - if the field being returned is&lt;br /&gt;
   # single valued it does nothing.  only for select lists with multiple&lt;br /&gt;
   # items does it produce a dynamic array&lt;br /&gt;
   $value = join($fld_delim, param($key));&lt;br /&gt;
   &lt;br /&gt;
   # Likewise, this next line usually does nothing, except when a multi-line&lt;br /&gt;
   # text box is being retrieved.  it too produces a dynamic array&lt;br /&gt;
   $value =~ s/\r\n/$fld_delim/og;&lt;br /&gt;
   &lt;br /&gt;
   # Send the data thru the named pipe to CGI.MASTER&lt;br /&gt;
   print $server &amp;quot;$key=&amp;quot;,$value,&amp;quot;\n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
shutdown($server,1);&lt;br /&gt;
&lt;br /&gt;
print &amp;lt;$server&amp;gt;;&lt;br /&gt;
print end_html;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Conversion script</name></author>
	</entry>
</feed>