The 1C:Enterprise developers forum
hi,my name is Özgürmy english is not very good. so the "google translate" using I am a new userI want to open a URLThis link sends smssuccessful or not, and returns the resultI do not know how it willcould you helpsample URL"http://api.netgsm.com.tr/bulkhttppost.asp?usercode=deneme&password=1234&gsmno=5051234567,5441234568&message=testmesaji&msgheader=MesajBaslik&startdate=300120121721&stopdate=300120122321"return data30 - successful thank you, bye bye
HTTPConnection method Get, please see included helpThere is an example for POST method
// initialize object for writing XML QueryFileName = GetTempFileName(); RecordObject = New XMLWriter; XMLWriterSettings = New XMLWriterSettings("windows-1251", , False); RecordObject.OpenFile(QueryFileName, XMLWriterSettings); RecordObject.WriteXMLDeclaration(); // display the Request root element RecordObject.WriteStartElement("Request"); // display the ClientInfo element RecordObject.WriteStartElement("ClientInfo"); RecordObject.WriteAttribute("email", SenderAdress); RecordObject.WriteEndElement(); If CertificateFileName <> Undefined Then // encode the certificate to Base64 DigData.Read(CertificateFileName); BaseCertificateFile64 = DigData.GetBaseString64(); // display the Certificate element RecordObject.WriteStartElement("Certificate"); RecordObject.WriteText(BaseCertificateFile64); RecordObject.WriteEndElement(); EndIf; If ScrambledContainerFileName <> Undefined Then // encode encrypted container to Base64 DigData.Read(ScrambledContainerFileName); BaseScrambledContainerFile64 = DigData.GetBaseString64(); // display the Data element RecordObject.WriteStartElement("Data"); RecordObject.WriteText(BaseScrambledContainerFile64); RecordObject.WriteEndElement(); EndIf; // writing end for the root element RecordObject.WriteEndElement(); RecordObject.Close(); OnLineCheckServerAddress = "onlinefc.taxcom.ru"; ResourceAtServer = "/online_fc/online_fc.dll" + ?(GetCertificate, "?IncludeCertificate", ""); // set connection with server Try Joining = New HTTPConnection(OnLineCheckServerAddress, , , , Proxy); Except Message("Couldn't connect to online check server:" + Chars.LF + ErrorInfo().Description, MessageStatus.Important); Return; EndTry; // send request ResultFile = GetTempFileName(); Try Joining.Post(QueryFileName, ResourceAtServer, ResultFile); Joining = Undefined; Except Message(ErrorInfo().Description, MessageStatus.Important); EndTry;
Hello Alexey GerasimovThank you for your responseI'm a new memberCan you give a simple exampleplease
If you do not need to handle the result, you can use RunApp for that:
RunApp("http://1c-dn.com");
Timofey Bugaevsky and Alexey Gerasimov thank you for your answersproblem solved by using "httpconnection" well you need to read the help menubye bye