Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Trouble with LWP, post request and XML data

by thecoder2012 (Novice)
on Jul 11, 2013 at 01:24 UTC ( [id://1043608]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $inhalt;
    my $sock = new IO::Socket::INET (
    ...
            $inhalt .= $_;
    }
    $sock->close();
    
  2. or download this
    my $ua = LWP::UserAgent->new;
    $ua->agent("xmlClient 1.0");
    ...
    
    my $res = $ua->request($req);
    my $inhalt = $res->as_string;#$res->{_content}
    
  3. or download this
    POST /xml/ HTTP/1.1
    Connection: Keep-Alive, close
    ...
    Content-Length: 224
    
    <?xml version="1.0" encoding="UTF-8"?><command name="checkDomain" cust
    +omer="111" password="11111111111111111111111111111111" passwort="1111
    +1111111111111111111111111111"><tld>de</tld><sld>super2423423423domain
    +</sld></command>
    
  4. or download this
    HTTP/1.1 200 OK
    Date: Mon, 24 Jun 2013 03:54:45 GMT
    ...
       <status>available</status>
    </response>
    </responses>
    
  5. or download this
    package Net::HTTP::Methods;
    
    ...
    } # BEGIN
    
    1;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1043608]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 17:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found