Re: very interesting post problem
| From: | QT | Date: | Sat, 18 Sep 2004 07:33:53 +0000 |
| Subject: | Re: very interesting post problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197088@lists.php.net to get a copy of this message | ||
Thank you,
But I don't understand what you mean with body of the post message. Would
you explain more or to give an example.
Best Regards
"Raditha Dissanayake" <jabber@raditha.com> wrote in message
news:414B9C92.9010706@raditha.com...
> QT wrote:
>
> >Dear Sirs,
> >
> >I need to post 3 string data to destination adres. But I see first time,
the
> >name of the variables are same such as DATA. I ask the destination ovner
is
> >there any error. Should be the form fields name such as DATA1, DATA2 and
> >DATA3.
> >
> >
> You appear to be posting to a servlet and according to my understanding
> the following will be collapsed.
>
> >
> >$str = "DATA=abc&DATA=123&DATA=xxx"
> >
> >
> Ie only DATA=xxx will be visible to the servlet
>
> > $len = strlen($str);
> >
> > $p = "POST /httpsmspp/servlet/sms HTTP/1.0\r\n";
> >
> >
> But you are using post. If you add the DATA items to the body of the
> post message they will be individually accessible by the servlet.
>
>
> --
> Raditha Dissanayake.
> ------------------------------------------------------------------------
> http://www.radinks.com/sftp/ |
> http://www.raditha.com/megaupload
> Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
> Graphical User Inteface. Just 128 KB | with progress bar.