Hi,
Ok let me give you an example for the string:
The original string is:
http://api.url?data=<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE MESSAGE SYSTEM "http:// +127.0.0.1/psms/dtd/message.dtd" ><MESSAGE><USER USERNAME="test" PASSW +ORD="XXXXXX"/><SMS UDH="0" CODING="1" TEXT="The flight # <101> "DEL" +to "BLR" is delayed and it's revised time will be informed later. Hav +e a nice day!" PROPERTY="0" ID="1"><ADDRESS FROM="ValueFirst" TO="91X +XXXXXXXXX" SEQ="1" TAG="some clientside random data" /></SMS></MESSAG +E>&action=send

The escaped string is:
http://api.url/psms/servlet/psms.Eservice2?data=%3C?xml%20version=%221 +.0%22%20encoding=%22ISO-8859-1%22?%3E%3C!DOCTYPE%20MESSAGE%20SYSTEM%2 +0%22http://127.0.0.1/psms/dtd/message.dtd%22%20%3E%3CMESSAGE%3E%3CUSE +R%20USERNAME=%22test%22%20PASSWORD=%22valueone%22/%3E%3CSMS%20%20UDH= +%220%22%20CODING=%221%22%20TEXT=%22The%20flight%20No.%20SG101:%20DEL% +20to%20BLR%20is%20delayed%20and%20it's%20revised%20time%20will%20be%2 +0informed%20later.%20Have%20a%20nice%20day!%22%20PROPERTY=%220%22%20I +D=%221%22%3E%3CADDRESS%20FROM=%22ValueFirst%22%20TO=%22919891153528%2 +2%20SEQ=%221%22%20TAG=%22some%20clientside%20random%20data%22%20/%3E% +3C/SMS%3E%3C/MESSAGE%3E&action=send

Pl. let me know how to generate the escaped string:
Please help me as this is getting crucial for me
Thanks
abhi

In reply to Re^2: HTTP::Request::Common - Unescape some characters by ejaincom
in thread HTTP::Request::Common - Unescape some characters by ejaincom

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.