post

jQuery AJAX and VBscript - Can't get values in VBscript variables when using POST in the jQuery AJAX

给你一囗甜甜゛ 提交于 2020-01-03 04:56:06
问题 I am having trouble getting the VBscript on a .asp page to assign values to variables which are sent by the jQuery ajax() function. I have this code on several other sites and it works fine, but for some reason it won't work on this website. Just in case it makes a difference we are running the sites through IIS7. The issue is that the variables on the VBscript page don't get assigned any of the values passed in the javascript page. However if I change the POST to GET and change request.form

I want to post a php variable from a form

拜拜、爱过 提交于 2020-01-03 04:50:11
问题 I have a php variable "echo $id". Now I want to use the $_POST method to post the variable. I just want to know how to do this for a variable because $_POST[$id] does not work? 回答1: With the method $_POST you must be posting to something. My suggestion to you is to create a form, then have the form going to the file you wish to post to: So something like this: echo '<form action = "fileToPostTo.php" method = "post"> <input type = "text" hidden value = "'.$id.'" /> </form>'; And then submit

How to send PHP array by html form by POST type

故事扮演 提交于 2020-01-03 04:44:10
问题 I am trying to send PHP array by html form by POST. The code which I am using is below: <?php $content = array('111', '222' ); ?> <html> <head> <title>PAGE TITLE</title> </head> <body> <form name="downloadexcel" action="downloadexcel.php" method="post"> <input type="text" name="data" value="<?php echo $content; ?>"/> <a href="javascript: submitform()">Download</a> </form> <script type="text/javascript"> function submitform() { document.downloadexcel.submit(); } </script> </body> </html> How

Troubleshooting HTTPClient asynchronous POST and reading results

旧街凉风 提交于 2020-01-03 04:24:31
问题 I have a problem post string to form and read. Problem is they get away but need to do so sophisticated and it was very fast. Absolutely perfect multithreaded or asynchronous. Thank you very for your help. This is my code. private static void AsyncDown() { const string url = "http://whois.sk-nic.sk/index.jsp"; const string req = "PREM-0001"; var client = new HttpClient(); var pairs = new List<KeyValuePair<string, string>> { new KeyValuePair<string, string>("text", "PREM-0001") };

POST data getting lost: Content Length = 0

我的梦境 提交于 2020-01-03 04:15:33
问题 I've been trying to find a solution for ages with no success. On our app, customers submit a form and on the next page we process it. Sometimes though the data never arrives. This seems to happen for just a few of our customers. Seems to happen with IE7 and using a proxy. Here's some headers, note the HTTP_VIA: X-REWRITE-URL: /process.asp?r=699743 APPL_MD_PATH: /LM/W3SVC/31555/ROOT APPL_PHYSICAL_PATH: C:\inetpub\vhosts\mysite.com\httpdocs\ AUTH_PASSWORD: AUTH_TYPE: AUTH_USER: CERT_COOKIE:

http.post(url, postData, options) does not set header

混江龙づ霸主 提交于 2020-01-03 03:28:09
问题 I have a problem when use HTTP post method in the following code: let body = JSON.stringify(applicationLink); let requestHeaders = new Headers(); var headers = new Headers(); headers.set('Content-Type', ['application/json']); headers.set('Access-Control-Allow-Origin', ['*']); let reqoptions = new RequestOptions({ headers: headers }); return this._http.post(this._applicationLinksUrl + this._linkServicePath,body,reqoptions).map(res => res.json()) When I execute the code I see an error:

QPX Express API from Python

一个人想着一个人 提交于 2020-01-03 03:20:14
问题 I am trying to use Google's QPX Express API from python. I keep running into a pair of issues in sending the request. At first what I tried is this: url = "https://www.googleapis.com/qpxExpress/v1/trips/search?key=MY_KEY_HERE" values = {"request": {"passengers": {"kind": "qpxexpress#passengerCounts", "adultCount": 1}, "slice": [{"kind": "qpxexpress#sliceInput", "origin": "RDU", "destination": location, "date": dateGo}]}} data = json.dumps(values) req = urllib2.Request(url, data, {'Content

Delphi 10.3.3 THTTPClient Post问题

久未见 提交于 2020-01-03 03:15:25
如果对于Post提交,需要对参数进行urlEncode处理的需要注意。 对于Post参数,可以用TString或者TStringStream两者。如果你采用的是用TStringStream,那么必须按照要求,自行urlEncode处理。这里没有问题。 但如果你是用的TString参数。那么请不要做urlEncode处理了。因为该组件调用TString处理时,己经帮你urlencode处理了 我们可以打开CreateFormFromStings这个函数, 看这里,如果你urlencode处理过。这里他又帮你处理了一下。那么有可能发生错误。 在这里,建议统一使用使用TStringStream进行post,对于参数该怎么处理就怎么处理。 来源: https://www.cnblogs.com/wuxi15/p/12142986.html

PHP Form post always empty

十年热恋 提交于 2020-01-03 03:09:08
问题 this must be configuration issue and I'm hoping somebody can help. I'm setting up a new project on my localhost and my PHP Post is always empty. Here's the example: My Form Page: <form id="loginForm" action="/post/login" method="post"> <input type="text" name="username" /> <input type="password" name="password" /> <input type="submit" value="Submit" /> </form> and the "/post/login/index.php" page: <?php var_dump( $_POST ); ?> the result: array(0) { } It seems like there's no code issue so

How to post XML to an iframe with JavaScript

一笑奈何 提交于 2020-01-03 02:40:30
问题 Basically I want to post XML (with Content-Type text/xml) to an URL and display the output directly in the browser. This has to be done in an iframe. Is it possible to post the XML to an iframe? In other words, can the Content-Type of the Post-Request be changed to text/xml? PHP4 is also available if necessary. The URL of the iframe-action has to remain because the Result contains a HTML page with relative links... 回答1: It used to be possible to document.open(mimetype) on the iframe back in