in reply to Re: Can't Post XML to SSL Site
in thread Can't Post XML to SSL Site
Okay, thank you both! However, neither suggestion did what I need it to do. I've figured out that the server is not going to unencode anything so the XML needs to be sent in plain text, no encoding. This works:
dpatrick
- I think scsh is cool.
Open Sourceror, Perlmonk
http://perlmonk.org/~dpatrick
...and it's nice because I've got my XML response in a separate variable out of gate: $page. I'd like to do the above using LWP, but I can't figure out how to send content unencoded, ie. plain text. I'm stumped.my $finalXML = $self->getFinalXML(); my $POST_URL = $self->getProcessingURL(); print $finalXML, "\n"; use Net::SSLeay; my ($page, $response, %reply_headers) = Net::SSLeay::post_https( 'dev.xmlsite.com', 11800, '', Net::SSLeay::make_headers('Content-Type' => 'text/xml'), "CLRCMRC_XML=$finalXML" ); foreach my $key (keys %reply_headers) { print "$key: ", $reply_headers{$key}, "\n"; } print 'Response: ', $response, "\n"; print 'Page: ', $page, "\n";
dpatrick
- I think scsh is cool.
Open Sourceror, Perlmonk
http://perlmonk.org/~dpatrick
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Can't Post XML to SSL Site
by diotalevi (Canon) on Oct 15, 2002 at 13:20 UTC | |
by dpatrick (Scribe) on Oct 26, 2002 at 17:48 UTC |
In Section
Seekers of Perl Wisdom