Hello
My problem is that I like to create a http request from some html code I have generated via HTML::Template. And when I have send the request I like to receive the response. So far the tutorials I have seen have all been used a url for the http request. But I think my problem is very easy to solve, but Im a totally newbi when it comes to web and CGI programming. So if you can give me an example of how to solve the problem I will be very pleased.
The code is generally just a html body that contains a javascript. See the example below. example:
<html> <head> <body> <script src="http://track.adform.net/adfserve/?bn=148362;click=h +ttp://adserver.adtech.de/adlink|323|91793|1|277|AdId=2046258;BnId=1;i +time=940075463;nodecode=yes;link=;ord=940075463;adfxid=1x;2011;set1=e +n-US|en-US|1440X900|10;set2=1450|700|24|8|10|0|3|7|0|0&CREFURL=http%3 +A%2F%2Fekstrabladet%2Edk%2F" language="JavaScript"> </script> </body> </html>
Regards
krisravn

In reply to Creating a HTTP request from html code by krisravn

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.