Quantum3629
چهارشنبه 11 دی 1398, 11:13 صبح
سلام به همه
من برای ارسال پیامک از یک url که شرکت سامانه پیامکی داده میخوام استفاده کنم که تنظیمات رو به صورت زیر نوشتم
IdHTTP1 := TIdHTTP.Create;
IdHTTP1.Request.Accept := 'application/json';
IdHTTP1.Request.ContentType := 'application/x-www-form-urlencoded';
IdHTTP1.Request.CharSet := 'utf-8';
Buffer := IdHTTP1.Post
('http://negar.armaghan.net/sms/url_type_message_send.html?' +
'username=98936*******&password=****¶meters=1234&destination=98936*******&type=1529_012',
resp)
ولی زمان اجرای برنامه خطا
HTTP/1.0 301 Moved Permanently
رو دارم کسی میدونه مشکل کجاست؟؟
من برای ارسال پیامک از یک url که شرکت سامانه پیامکی داده میخوام استفاده کنم که تنظیمات رو به صورت زیر نوشتم
IdHTTP1 := TIdHTTP.Create;
IdHTTP1.Request.Accept := 'application/json';
IdHTTP1.Request.ContentType := 'application/x-www-form-urlencoded';
IdHTTP1.Request.CharSet := 'utf-8';
Buffer := IdHTTP1.Post
('http://negar.armaghan.net/sms/url_type_message_send.html?' +
'username=98936*******&password=****¶meters=1234&destination=98936*******&type=1529_012',
resp)
ولی زمان اجرای برنامه خطا
HTTP/1.0 301 Moved Permanently
رو دارم کسی میدونه مشکل کجاست؟؟