How to use HttpPost through Java Application

How to use HttpPost through Java Application SearchSearch
Author Message
Anonymous
 
Posted on Thursday, September 16, 2004 - 05:26 am:   

Hi guys,
Im trying to send Text/MMS Message through Java Application by HTTP Post but it always gives me HTTP/1.0 401 Authorization Required. I included the user and password while posting.whats the solution here?it works if i use GET method in application.
thanks,
Mark
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3531
Registered: 10-2002
Posted on Thursday, September 30, 2004 - 07:35 pm:   

Hi Mark,

Are you using an "Authorization:" header, or are you using the "user" and "password" variables? I suspect the latter ...

We should pick those variables up whether they are included POST style, or GET style.

If all else fails, change your POST URL to include those variables in the URL request. Even though you're doing a POST, we'll still look for them in the URL as well.
Anonymous
 
Posted on Friday, October 01, 2004 - 02:56 am:   

HI Bruce,
thanks for replying. i got that sorted out.I wasnt using user and pwd variables.
cheers,
Mark
Anonymous
 
Posted on Friday, October 08, 2004 - 10:27 am:   

Hi guys,
I need to send SMS from my pc to mobilephone through Internet without getting any subscriber account bcoz i am working in this project .i need to show a demo.If it is availble in Javait's better for me.thanks in advance.
siva
siva
New member
Username: Siva_kanagaraj

Post Number: 2
Registered: 10-2004
Posted on Friday, October 08, 2004 - 10:33 am:   

--------------------------------------------------------------------------------
hi guys,
i need to send sms from my pc to mobilephone through Internet.this is my project.It's urgent.If it is in java better for me.Thanks in advance.
siva