http-post

How to post data to a website

こ雲淡風輕ζ 提交于 2019-11-29 01:53:37
I need to post data to a website. So I created a small app in C#.net where I open this website and fill in all the controls (radio buttons, text boxes, checkboxes etc) with the values from my database. I also have a click event on the SUBMIT button. The app then waits for 10-15 seconds and then copies the response from the webpage to my database. As you can see, this is really a hectic process. If there are thousands of records to upload, this app takes much longer (due to fact that it waits 15s for the response). Is there any other way to post data? I am looking for something like

How to send Arrays / Lists with Retrofit

元气小坏坏 提交于 2019-11-29 01:52:05
I need to send a list / an array of Integer values with Retrofit to the server (via POST) I do it this way: @FormUrlEncoded @POST("/profile/searchProfile") Call<ResponseBody> postSearchProfile( @Field("age") List<Integer> age }; and send it like this: ArrayList<Integer> ages = new ArrayList<>(); ages.add(20); ages.add(30); ISearchProfilePost iSearchProfile = gsonServerAPIRetrofit.create(ISearchProfilePost.class); Call<ResponseBody> call = iSearchProfile.postSearchProfile( ages ); The problem is, the values reach the server not comma separated. So the values there are like age: 2030 instead of

Getting content body from http post using php CURL

孤街浪徒 提交于 2019-11-29 01:18:17
I am trying to debug an http post the I am trying to send from list application. I have been able to send the correct post from php CURL which corectly interfaces with my drupal 7 website and uploads an image. In order to get this to work in my lisp application I really need to see the content body of my http post I have been able to see the headers using a call like this: curl_setopt($curl, CURLOPT_STDERR, $fp); curl_setopt($curl, CURLOPT_VERBOSE, 1); and the headers look the same in my lisp application but I have been unable to examine the body of the post. I have searched online and other

Android - Send Image file to the Server DB

你。 提交于 2019-11-29 00:25:03
Users save three data: name , note and image . As you can see the code below, I succeeded to code to send the name and note to the server side. But, I have no idea how to send a selected image file from the device to the serverDB. public class AddEditWishlists extends Activity { // Client-Server - Start ////////////////////// // Progress Dialog private ProgressDialog pDialog; JSONParser jsonParser = new JSONParser(); EditText inputName; EditText inputDesc; // url to create new product private static String url_create_product = "http://10.56.43.91/android_connect/create_product.php"; // JSON

Send both POST and GET in a form

烂漫一生 提交于 2019-11-28 23:41:13
I need to make a form send both POST and GET requests (due to some bugs in IE and iframes), how can you do so? The data being sent is nothing mega secure so it doesn't matter if it can be set via GET, just need to make sure it is set both ways. Thanks for the help! Easy: Just specify the GET data in the form URL. <form method="POST" action="form.php?a=1&b=2&c=3"> however, very carefully check how the data is used in the receiving script. Don't use $_REQUEST - rather parse $_GET and $_POST according to your exact needs and in the priority order you need them. Make the form do a usual POST and

Are there Firefox extension (or any other browser) that allow to send arbitrary POST data to a webpage? [closed]

让人想犯罪 __ 提交于 2019-11-28 22:56:57
I want to test the security of a website of mine and I would love to have an application that is able to send POST data, if it's even possible.. Thanks Yes, there are two I know of: Tamper Data Modify Headers Mystic Try Fiddler . From their own documentation: "The Request Builder allows you to craft custom requests to send to the server. You can either create a new request manually, or you can drag and drop a session from the Web Sessions list to create a new request based on the existing request." (source: ifinity.com.au ) RESTClient : request oriented and user-firendly (runs in a tab, XML

Deprecated HTTP Classes Android lollipop 5.1

时间秒杀一切 提交于 2019-11-28 22:32:36
问题 The org.apache.http classes and the AndroidHttpClient class have been deprecated in Android 5.1. These classes are no longer being maintained and you should migrate any app code using these APIs to the URLConnection classes as soon as possible. https://developer.android.com/about/versions/android-5.1.html#http It has recommended to switch to URLConnection classes. There is not enough documented exactly how to make the post call from the app. Currently i am using this public void postData() {

How should I be implementing the HTTP POST Protocol Binding for SAML WebSSO Profile?

旧巷老猫 提交于 2019-11-28 21:30:01
I've implemented my Service Provider and Identify Provider following the SAML Profile for Web SSO using HTTP POST Protocol Binding. However, I am a bit confused as to how the Identity Provider will provide an <AuthnStatement> if the HTTP POST coming from the Service Provider is not tied to a session on the Identity Provider. Could someone enlighten me how one would be able to do this? The other approach I could use is the HTTP Redirect Binding, but that requires User-Agent intervention (i.e., the browser), often using the User-Agent simply as a pass-thru intermediary to faciliate the Request

HTTP POST using Angular.js

你离开我真会死。 提交于 2019-11-28 19:26:19
I'm new to the scene and I want to use Angular.js to make an HTTP POST request. I'm accessing PHP scripts which have parameters that are just POST variables. What gets returned from each script is a JSON string. Normally in an HTML form you can make such a request like: <form method="post" action="url.php"> <input name="this"> <input name="that"> <input value="Submit"> </form> Depending on your input and after you click submit, JSON data1 will return something like this: { "code" : 1 } I have no access to the scripts or to the servers that hosts them. I was wondering if it's possible for

How to disable Volley request from retrying?

为君一笑 提交于 2019-11-28 18:39:59
I post a JsonRequest to a server. The server is slow. Volley tends to make multiple calls to the slow server because it didn't get a response from the first request (since my server is slow). Is there any way to disable Volley from retrying a request so that it can receive the first response? I have tried: myRequest.setRetryPolicy(new DefaultRetryPolicy( TIMEOUT_MS, RETRIES, BACKOFF_MULT)); I have replaced TIMEOUT_MS = 0, RETRIES = 0, and even BACKOFF_MULT = 0, but it doesn't work. Any other suggestions? David The Volley Default Retry Policy is: /** The default socket timeout in milliseconds *