http-post

NSURLConnection connecting to server, but not posting data

百般思念 提交于 2019-12-12 07:28:02
问题 Whenever I attempt to post something to my PHP Server, I receive the following message. It seems as if the code is connecting to the server, but no data is returned, and the post data isn't going through. It worked through a Java App that I made, so I can assure that their is nothing wrong with my PHP. If you could help me, or need any more code to help me, just ask for it. Thanks. Here is the code that prepares my variables for the NSURLConnection: NSString *phash = [NSString

HTTP Error 405.0 - Method Not Allowed, with POST

走远了吗. 提交于 2019-12-12 06:45:21
问题 I am trying to use isset($_POST['Save']) in my php file to save result in database. echo "<form action='' method='POST'>"; echo "<input name='Save' type='submit' value='Save Result'>"; echo "</form>"; if(isset($_POST['Save'])) { include('saveResult.php'); } saveResult.php: <?php if(isset($_POST['Save'])) // If the submit button was clicked { $serverName = "Alaa"; echo"saveResult function php"; $connectionInfo = array( "Database"=>"i2b2blast", "UID"=>"i2b2blast", "PWD"=>"demouser"); $conn =

How to Design the Overlay Menu Above the Home Page?

[亡魂溺海] 提交于 2019-12-12 06:38:43
问题 How to Design the Overlay Instructions Above The View? I HAD 6 buttons....For Each Button I have To show Overlay For That, Before i click on that Button Suppose... 1) Click button is there...above the Click Button we need to show overlay for click on that button Like That... ** [I Need Like This Overlay menu over the all Buttons][1] [1]: http://i.stack.imgur.com/dIjRF.jpg ** 回答1: Use NSURLSession instead. NSURLConnection is deprecated. NSString *stringURL = [NSString stringWithFormat:@"%@

Can't send volley post request from android phone

淺唱寂寞╮ 提交于 2019-12-12 06:29:48
问题 I'm using Volley to send an http post request with parameters from my android app to my local server running in http://192.168.1.4:3000/battery_signal_report I'm pretty sure the server is running properly (I checked it with Postman successfully). also, I successfully sent the request through Android Studio's Emulator using ip 10.0.2.2 Trying to make it work, i used various request implementations including JsonObjectRequest, StringRequest and the custom request described here: Volley

Post Request with Swift Doesn't work

纵饮孤独 提交于 2019-12-12 06:16:02
问题 In my first question I had an error and it has been fixed, but now there is no error but nothing happends. I want to show all the components of this table on here http://blich.iscool.co.il/tabid/2117/language/he-IL/Default.aspx/ but with my gui and other stuff, I want just to pull out information from that table to my app. But, I have a problem I want to pull out the right information from that table, because if you click for example on the rightest button called "מערכת שינויים" the table

Error with HTTP POST Connection

巧了我就是萌 提交于 2019-12-12 05:49:21
问题 I am using a class to use HTTP POST & getting data from a data base via php/json and converting it to a string. The problem is that I am getting "Error in http connection android.os.NetworkOnMainThreadException" in LogCat. I'm testing this on the emulator and I am using the correct port address. I know this because the port works fine in other parts of the application(loading HTML from Localhost). If I run the php file in a desktop browser, it runs fine. I also know that the permissions are

getting empty response from PHP server

我怕爱的太早我们不能终老 提交于 2019-12-12 05:47:29
问题 Hi friends I am trying to add PHP web services to my ANDROID application, my android code: userName = userNameField.getText().toString(); passWord = passWordField.getText().toString(); try { JSONObject json = new JSONObject(); json.put("username", userName); json.put("password", passWord); json.put("device_type", "Android"); json.put("lat", "0.0"); json.put("long", "0.0"); JSONObject json1 = new JSONObject(); json1.put("method_name", "checkLogin"); json1.putOpt("body", json); HttpParams

Cross-domain post to external site fails on wordpress

守給你的承諾、 提交于 2019-12-12 05:29:38
问题 I'm trying to post data to an external website from a wordpress site using Javascript, however when i send the form i'm getting this: XMLHttpRequest cannot load https://external_site.com/embed/documents. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://my_site.com' is therefore not allowed access. The response had HTTP status code 404 I'm trying to this from a Wordpress site, this is

Products are not bein saved (anythin else is): keeps loading/processing

∥☆過路亽.° 提交于 2019-12-12 04:49:25
问题 Unitll this morning I have experienced zero troubles while saving products in Magento. But, since an hour or 2, my products are just not being saved. Magento keeps loading (a popup stays with ‘Please wait’) and my product is never saved. With firebug, I found that the transaction is aborted. I used fiddler to trace the request, and got this: HTTP/1.1 504 Fiddler - Receive Failure Content-Type: text/html; charset=UTF-8 Connection: close “ReadResponse() failed: The server did not return a

HTTPPost not sending proper values

谁都会走 提交于 2019-12-12 04:39:33
问题 This is 3rd question today pertaining to Android, this is starting to get embarrassing. I'm trying to send a HTTP POST request to this PHP page, I'm trying to retrieve information for albums from my MySQL database: <?php if (isset($_POST['req']) && $_POST['req'] != '') { $request = $_POST['req']; // Including the handler for the database require_once 'include/db_functions.php'; $db = new db_functions(); // Array for response $response = array("req" => $request, "success" => 0, "error" => 0);