I have a redirect that passes a value thanks to help from here. It passes one word entries using a Perl action form then redirects value to my ASP action page. The problem is it wont pass two or more word entries. If I enter one word such as OneWord it works great, but if I enter a string like this OneWord NextWord into my form entry it doesnt work and gives me the error:
HTTP Error 400 400 Bad Request Due to malformed syntax, the request could not be understood by the se +rver. The client should not repeat the request without modifications.
Here is the redirect part:
#!/usr/local/bin/perl -w use strict; use CGI qw(:standard); #Perl web CGI module use CGI::Carp qw(fatalsToBrowser); my $query = new CGI; my $name = $query->param("name"); print $query->redirect("http://webserver/action.asp?name=$name");
Please advise how I can get it to accept more than one word in the form entry for my name field.

In reply to Passing value with two words or more by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.