P
pratap
Hi,
I am trying to write a script to do a HTTP POST. So, I tried doing it
using LWP and it worked. The problem is, the computer in which I will
be running this code cannot not have LWP. So, I have to do it without
LWP. So, I can think of a couple of options that I have,
1. I can write the "HTTP POST" code using sockets ... which I assume
would take a lot of time to make the packets (or is it simply
$sock->send("POST http://a.com/abc.php in1=val1&in2=val ") or some
such?).
2. I can run LWP in another computer (with LWP) and take a "packet
dump" like ToString of the Object, and pass this information to the
actual machine. But I do not know how to do this.
I am a newbie so any help or suggestions for the above would be great.
Thanks a lot.
-Pratap
I am trying to write a script to do a HTTP POST. So, I tried doing it
using LWP and it worked. The problem is, the computer in which I will
be running this code cannot not have LWP. So, I have to do it without
LWP. So, I can think of a couple of options that I have,
1. I can write the "HTTP POST" code using sockets ... which I assume
would take a lot of time to make the packets (or is it simply
$sock->send("POST http://a.com/abc.php in1=val1&in2=val ") or some
such?).
2. I can run LWP in another computer (with LWP) and take a "packet
dump" like ToString of the Object, and pass this information to the
actual machine. But I do not know how to do this.
I am a newbie so any help or suggestions for the above would be great.
Thanks a lot.
-Pratap