Click here to get back home

Credentials and POST method with IO::Socket::SSL?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Credentials and POST method with IO::Socket::SSL? Mark G. 06-30-2006
Posted by Mark G. on June 30, 2006, 5:14 pm
Please log in for more thread options


Hello.

I need to send form data to a secure server, using the POST method.
I have successfully used IO::Socket::SSL with the GET method, but
I cannot find any examples of posting data using this module.

Can anyone here help?

Thanks
-Mark



Posted by Mark G. on July 1, 2006, 12:08 pm
Please log in for more thread options


> Hello.
>
> I need to send form data to a secure server, using the POST method.
> I have successfully used IO::Socket::SSL with the GET method, but
> I cannot find any examples of posting data using this module.

Well, I got that working. . .encrypted data is flowing.

Unfortunately, I am getting a 400 response with "Bad Request (Invalid Header
Name)."
It looks like I'll be curling up with a good RFC this evening.

-Mark



Posted by Brian McCauley on July 8, 2006, 1:57 am
Please log in for more thread options


Mark G. wrote:

> I need to send form data to a secure server, using the POST method.
> I have successfully used IO::Socket::SSL with the GET method, but
> I cannot find any examples of posting data using this module.

IIRC, although IO::Socket::SSL contains a rudimentary HTTPS client
implementation it's more common practice, better documented, more
complete and more reliable to use the HTTPS implementation in LWP
instead.

Note: This this still uses IO::Socket::SSL to do the SSL but uses the
HTTP implementation from LWP.


Similar ThreadsPosted
LWP::UserAgent credentials netloc and realm May 27, 2005, 6:56 pm
IO::Socket::SSL March 24, 2005, 10:10 pm
LWP and socket May 1, 2007, 6:06 pm
IO::Socket sometimes hang, why? Please help November 7, 2004, 7:54 pm
IO::Socket->socketpair() May 21, 2007, 3:25 pm
Installing IO::Socket::SSL on Win32? June 30, 2006, 11:11 am
IO::Socket default timeout September 25, 2006, 2:35 pm
IO::Socket::SSL: cannot connect using different LocalAddr October 2, 2007, 12:28 pm
IO::Socket::INET nonblocking confusing April 25, 2007, 7:27 am
SSLeay & OpenSSL problem with install of IO::Socket::SSL June 24, 2005, 9:39 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap