get

Synapse Delphi HTTPS SSL GET Request

亡梦爱人 提交于 2019-12-03 09:32:32
Only a GET request to a HTTP url works. If i try to request a HTTPS url then it doesn't return anything. I pretty much tried everything. Appreciate any help. Here's my code: SynHttp.Sock.CreateWithSSL(TSSLOpenSSL); SynHttp.Sock.SSLDoConnect; SynHttp.HTTPMethod('GET', 'https://www.google.com/'); Resp.LoadFromStream(SynHttp.Document); HtmlResponse := Resp.Text; SynHTTP is a THTTPSend object. Make sure: your exe application can access ssleay32.dll and libeay32.dll - the easiest way is to copy them into the directory of your exe. you added ssl_openssl.pas and ssl_openssl_lib.pas to your project.

how to get the child node in div using javascript

核能气质少年 提交于 2019-12-03 09:27:00
Below is the structure of my div: <div id="ctl00_ContentPlaceHolder1_Jobs_dlItems_ctl01_a" onmouseup="checkMultipleSelection(this,event);"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td style="width:50px; text-align:left;">09:15 AM</td> <td style="width:50px; text-align:left;">Item001</td> <td style="width:50px; text-align:left;">10</td> <td style="width:50px; text-align:left;">Address1</td> <td style="width:50px; text-align:left;">46545465</td> <td style="width:50px; text-align:left;">ref1</td> </tr> </table> </div> Now, if i have the id of the div, how can i get

How to encrypt the $_GET data in php?

拜拜、爱过 提交于 2019-12-03 09:14:32
As in php we use $_GET to pass variables in the url , i want to pass variables which include the id of the user which i want to be anonymous, so can something be done which can encrypt the variable before passing it and the the variable once taken on the page can be decrypted to get the original variable value. for eg: Before passing variable $id=10; Passed in the url as $id=dasfgjg; when taken from the url and decrypted $id=10; How can this be achieved? You can use an RC4 cipher if you intend to encrypt/decrypt only on the server-side http://www.phpkode.com/source/s/rc4-cipher-0-1/rc4-cipher

How to access android MMS resources such as video/audio etc?

别等时光非礼了梦想. 提交于 2019-12-03 09:00:30
I started developing an android app that have to interact with MMS attachements, in particular, get attachements such as text, bitmaps, audio, video etc. and store them on the phone in a specific folder. So i started reading some books and some post on the web but it isn't a very common argument, and i didn't find an official way to do what i want to do. I found a fairly good article here on stack-overflow here: How to Read MMS Data in Android? ... it works very well for me, but there are 2 problems: The article shows you how to get MMS data by querying over the "hidden" SMS-MMS content

PHP switch with GET request

橙三吉。 提交于 2019-12-03 08:51:55
问题 I am building a simple admin area for my site and I want the URLs to look somewhat like this: http://mysite.com/admin/?home http://mysite.com/admin/?settings http://mysite.com/admin/?users But I am not sure how I would retrieve what page is being requested and then show the required page. I tried this in my switch: switch($_GET[]) { case 'home': echo 'admin home'; break; } But I get this error: Fatal error: Cannot use [] for reading in C:\path\to\web\directory\admin\index.php on line 40 Is

Back to the App after call

…衆ロ難τιáo~ 提交于 2019-12-03 08:47:07
i'm trying to make a phone call from the app and I want it to return back to the app after the call i asked that question in this forum but i didn't understand the answer How to make a phone call in android and come back to my activity when the call is done? public void call() { try { Intent callIntent = new Intent(Intent.ACTION_CALL); callIntent.setData(Uri.parse("tel:048598077")); getContext().startActivity(callIntent); } catch (ActivityNotFoundException activityException) { Log.e("dialing-example", "Call failed", activityException);} finally { EndCallListener callListener = new

jQuery .ajax() does not work in Safari when it takes seconds to get returned data

一个人想着一个人 提交于 2019-12-03 08:41:48
I'm using the jQuery ajax() method to pass on (GET) data to another ExportData page, and get the returned data ("succeeded/failed") after that page processes. The ExportData page takes about 10 seconds before it returns "succeeded/failed". The code I'm using works well in other browsers (FF/IE/Chrome) but NOT in Safari. In Safari's code inspector the status code showed is -1001 and no data was received. Whilst there're other ajax() requests (not need so long as this page to return data) and they do work (with status of 200). I had a guess that the long interval between sending and receiving

What is the best way to auto generate getters and setters for a class in php?

泄露秘密 提交于 2019-12-03 06:50:39
I regularly create a class that has a few private variables. When an instance of this class is set, it should be possible to fill all variables of the class with getters and setters. Is there an easy way to do this without having to type all these setters and getters for each variable on creation of the class? now i have to type this for each var in the class public function setVar($var){ $this->var = $var; } and public function getVar(){ return $this->var; } We now use RegExp, but i don't know if this is the easiest way... We use Eclipse as environment, so perhaps there are some usefull

How do I send an HTTP GET request in chrome extension?

*爱你&永不变心* 提交于 2019-12-03 06:32:50
问题 I'm working on a chrome extension that sends an HTTP request using the method GET. How do I send at www.example.com the parameter par with value 0 ? www.example.com?par=0 (the server reads the parameter par and does some stuff) I found this article, talking about Cross-Origin XMLHttpRequest. But I don't know how their example could help me. 回答1: You have to go to your manifest.json and add the permission for www.example.com : { "name": "My extension", ... "permissions": [ "http://www.example

How to get a cell value in JQGrid?

荒凉一梦 提交于 2019-12-03 05:31:45
How to get a cell value in JQGrid? If I use the following syntax – var ret = jQuery("#MyGrid").jqGrid('getRowData', id); ret = ret.ProductId; it returns the following HTML. 'input class="editable" name=" ProductId " id="0_ ProductId " style="width: 98%;" type="text"' I actually need the value of the cell. Thanks. Dev If you only need the value of a cell that has already been saved, you can get it with this $('#myTable').jqGrid('getCell',row_id,'column_name'); If you try to get the value of a row while it is being edited, you will retrieve markup (as in your example), instead of the actual