HTTP Post sample.

2003-10-03 Thread Abdul Nazeer
Hi,   Can someone provide me with a sample HTML file which is working for sendsms HTTP post method ?   Currently I have this html and I am getting 403 (Authorization failed from server)                 http://localhost:13003/cgi-bin/sendsms' method = 'POST'>  User Name :   Password :   Me

HTTP Post sample.

2004-01-20 Thread João Reis
Hi Abdul, I was reading the mailing list and found that you had a similar problem just like mine. I'am integrating the sendsms cgi-bin in a PHP Code. I tried the curl libraries and executing with lynx from the command line and the answer is the same of yours (403 (Authorization failed from ser

Re: HTTP Post sample.

2004-01-20 Thread Simon Scott
why don't you use php's fopen function instead of lynx via a command shell? - Original Message - From: "João Reis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 20, 2004 3:37 PM Subject: HTTP Post sampl

Re: HTTP Post sample.

2004-01-20 Thread João Reis
g the URL in a browser or inside a PHP code? Simon Scott wrote: why don't you use php's fopen function instead of lynx via a command shell? - Original Message - From: "João Reis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]&

Re: HTTP Post sample.

2004-01-20 Thread Rudy
Hi Joao, Use curl function in your PHP, it works for me (as I, too, found lynx inside PHP doesn't work). E.g.: http://localhost:13013/cgi-bin/sendsms?username=tester&; ..."; $url_2 = urlencode($url_1); $url_3 = "/usr/bin/curl "."'$url_2'";

Re: HTTP Post sample.

2004-01-21 Thread João Reis
Hi to all, Thanks for your help. :-) I've made it ! The trick was not to place a PUT Command but a GET. Here is the code which i've found in the lists. $fp = fsockopen ($host, $port, $errno, $errstr, 30); if (!$fp) { echo "ERROR: $errstr ($errno)\n"; } else { fputs ($fp,"GET /cgi-bin/sen