Posts

Submit a form automatically with PHP -

I wanted to submit a form with php with special values, but it did not work here Code is: & lt ;? create the array of data to post php // $ post_data ['username'] = 'some'; $ Post_data ['password'] = 'something!'; // Generate data for Troops array and posting (key 1 = value 1) Forex ($ post_data $ key = & gt; $ value) {$ post_items [] = $ key '=' $ value; } // implode () $ post_string = create the last string to post using implode ('& amp; $, post_items); // Create CRL Connection curl_connection = curl_init ('http://www.parsdata.com/'); // Set option curl_setopt ($ curl_connection, CURLOPT_CONNECTTIMEOUT, 30); Curl_setopt ($ curl_connection, CURLOPT_USERAGENT, "Mozilla / 4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); Curl_setopt ($ curl_connection, CURLOPT_RETURNTRANSFER, true); Curl_setopt ($ curl_connection, CURLOPT_SSL_VERIFYPEER, incorrect); Curl_setopt ($ curl_connection, CURLOPT_FOLLOWLOCATION, 1); ...

c# - HttpWebRequest cookie for redirected request -

or should authorize me on site in my program, authorization request on the cookie value and pages (page 1, Mysite. com / lots / 8188 / request / 4261 / "), which I redirect to another (page 2, which url eg" mysite.com/lots/view/8188/ "): SendingRequest.CookieContainer = new Cookie Contaneyr (); SendingRequest.CookieContainer.Add (sending request. requests, new cookies (ASPNETSessionIdCookieName, this.ASPNETSessionIdCookie)); request. Anumodnotoardiarekt = true; SendingRequest.Maximu mAutomaticRedirections = 100; HttpWebResponse response = (HttpWebResponse) sendingRequest.GetResponse (); Well, Page 1 and I was sent back to the page required HTTP with the required URL 2 2 Page 3 I have, then going to send the requested page 2, but it ASPNETSessionIdCookieName does not send cookies to page 2 and server gives me inept response. to redirect requests how do I use "ASPNETSessionIdCookieName"? Auto-Reedairesitn is going cookies changing domain / URL that...

Are Java 8 lambdas compiled as inner classes, methods or something else? -

इस सवाल का पहले से ही एक उत्तर है: 1 उत्तर मैंने आज यह लेख पढ़ा है लैम्ब्दास के बारे में: लेख से पता चलता है, कि लैंबडा नहीं है एनो इनर क्लास के रूप में कार्यान्वित (प्रदर्शन के कारण) मैंने एक बहुत सरल स्निपेट की कोशिश की है: निजी शून्य रन () {System.out.println (यह); giveHello (System.out :: println); } निजी शून्य देनाहेलो (उपभोक्ता और लेफ्टिनेंट; स्ट्रिंग & gt; उपभोक्ता) {System.out.println (उपभोक्ता); consumer.accept ( "हैलो"); } और आउटपुट है: sample.Main@14ae5a5 sample.Main$$Lambda$1/168423058@4a574795 हैलो तो यह वही उदाहरण नहीं है यह कुछ केंद्रीय "लम्बेडा फैक्टरी" उदाहरण या तो नहीं है .. लैम्ब्डा कैसे लागू किया जाता है? यह अभिव्यक्ति है कि आप एक वास्तविक लैम्ब्डा अभिव्यक्ति पास करते हैं और एक विधि संदर्भ नहीं मानते हैं, एक अलग, सिंथेटिक विधि के रूप में संकलित किया गया है। अपेक्षित कार्यात्मक इंटरफ़ेस (जैसे, एक स्ट्रिंग को उपभोक्ता & lt; स्ट्रिंग & gt; के मामले में) के किसी भी औपचारिक तर्क के अलावा, इसमे...

angularjs - Value in button? -

मेरे पास मूल्य {{डेटा [0] .pageCount}} है। यह एक संख्या प्रदर्शित करता है और यह ठीक काम करता है। लेकिन यह तब काम नहीं करता जब मैं करता हूँ: & lt; button class = 'btn button-next' एनजी-अक्षम = "वर्तमान पृष्ठ & gt; = {{डेटा [0] .pageCount}}" एनजी-क्लिक = "getPage (वर्तमान पृष्ठ = वर्तमान पृष्ठ + 1)" & gt; कोई भी विचार कैसे ठीक कर सकता है? धन्यवाद! इसे प्रयास करें, & lt; बटन वर्ग = 'बीटीएन बटन-अगला' एनजी-अक्षम =" वर्तमान पृष्ठ & gt; = डेटा [0] .pageCount "ng-click = "getPage (currentPage = currentPage +1)" & gt;

MQTT with Mosquitto -

What message are supported by quotes Mosqitto ()? Apart from this, I want to know in the MCTT protocol, a separate message queue is made for each subject or this can be done in case of memory constraints. mosquito only supports MCTT MCTT is not normally the concept to be considered as a queue After saying, each customer has a line of messages which will be distributed to it. The number of messages in the client queue can be limited by a configuration option. There will be an option to limit the use of heap globally in the future and therefore the full length lines.

Nothing to repeat Javascript regex -

I'm getting the error "nothing to repeat" / ^ [az] + [az] + [0] - 9] + [^ A-Za-z0- 9] + {8,} $ / when I run it or by using the string.match () function (you can paste the code ) Regx is trying to ensure that the string is at least 8 characters long, it includes lowercase A-jazz, uppercase e-z, at least one digit and one non-letter / number (special character). Previous posts mention special characters, but I have not got anybody in this method, so why not get confused. (? =. * [Az]) (? =? * [Az]) (? =. * \ D) (? =. * ([^ \ W] | _)). {8,} You need regex above. You have two quantifiers, which are causing the error.

javascript - angular-datatables payload format does not change upon subsequent calls to reloadData() -

By using the initial load of data in the table using the angular-datatable (), I want to change the date range for which Reload and display data period is selected using the input field two days from time to time. However, all subsequent requests do not modify the time-line parameters in the dtOptions obeject. The strange thing is that, when I change the modified dtOptions objects, the changes begin to take effect, that is, the data property of dtOptions Demonstrates the request in the "Networks" tab of "Developer Tools" in Chrome, indicating that the old deadline values ​​are still used, which are not updated in table entries. Example: Whenever I post for new data getting it in the "Networks" tab of "Developers Tools" is from {to, from} is: Origin: http: // localhost: 9000 Referer: http: // localhost: 9000 / user-agent: Mozilla / 5.0 (X11, Linux x86_64) ChromeWebKit / 537.36 (KHTML, like Lizard) Chrome / 37.0. 2062.120 Sa...