http-post

Best Approach to process images in Django

I've have an application with Android front end and Django as the back end. As part of the answers here, I'm confused over the approach which I should take to send images to Django Server. I've 2 options at my disposal as Piro pointed out there. 1) Sending images as Multi Part entity 2) Send image as a String after encoding it using Ba...

Is there a max size for POST parameter content?

I'm troubleshooting a java app where XML is sent between two systems using HTTP POST and a servlet. I suspect that the problem is that the XML is growing way to big. Is it possible that this is the problem? Is there a limit? When it doesn't work, the request.getParameter("message") on the consumer side will return null. Both apps are r...

Using HTTPPOST with WebViewClient

I am looking for an example of using a WebViewClient with shouldOverrideUrlLoading and using HttpPost. I need to display a web page, keep it within my layout boundaries so it can not launch a new browser and also use HttpPost to send data to the host. ...

How can I debug this web service http handler?

Hello everyone, I am building a Httphandler following these instructions here It manipulates HTTP POST and HTTP GET. I have a client with two buttons two POST and GET. After i've tested and happy everythings working I move it from localhost to IIS. Now when I do this I get an exception in the POST handler code. How on earth can I de...

What is the best way to post data from web browser to server?

Hi, I want to know what is the best way to send data from web browser to server using post method. I've seen a practice where they wrap all the elements data in XML, convert it into Base64 string and then post it to the server (via Ajax or hidden field). this way will not work if the Javascript is disabled, any how if I ignored this. is ...

Echo an $_POST in PHP

Hi! How can I print an $_POST ? Example: echo $_POST['data']; This returns nothing... ...

MVC null model problem

hello, i have created two create actions..one to call the create view and the other to process the create view using httppost. when i call the create view, it gets published correctly , dropdowns and all. the problem is that when i fill out the create form and click on the submit button, i get an error; Object reference not set to an ...

Android - How can I upload a txt file to a website?

I want to upload a txt file to a website, I'll admit I haven't looked into it in any great detail but I have looked at a few examples and would like more experienced opinions on whether I'm going in the right direction. Here is what I have so far: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpContext localContext = new ...

Android: Can not send http post

Hi all, I've been banging my head trying to figure out how to send a post method in Android. This is how my code look like: public class HomeActivity extends Activity implements OnClickListener { private TextView textView; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceStat...

Modify POST request in mod_perl2

Does anyone know how to access/modify the POST request data using mod_perl2. IN GET method one can get/set the request QUERY string: $args = $r->args(); $prev_args = $r->args($new_args); How to get/set the request QUERY string in POST method ? ...

Using Android to Post XML files

EDIT : I am trying to send an xml file as a post request in Android. The server accepts text/xml. I tried creating a MultipartEntity, which has a content type of multipart/form-data. HttpClient httpClient = new DefaultHttpClient(); /* New Post Request */ HttpPost postRequest = new HttpPost(url); byte[] data = IOUtils.t...

UnicodeEncodeError: 'ascii' codec can't encode character when trying a HTTP POST in Python

Hi there, I'm trying to do a HTTP POST with a unicode string (u'\xe4\xf6\xfc') as a paremter in Python, but I receive the following error: UnicodeEncodeError: 'ascii' codec can't encode character This is to the code used to make the HTTP POST (with httplib2) http = httplib2.Http() userInfo = [('Name', u'\xe4\xf6\xfc')] data = ur...

base64 http post using iphone sdk

Hello, I want to post some binary data to a website. The file can be somewhat large so I convert it to base64 and composite an url and post the url to the website with NSString stringWithContentsOfURL. This works but it's really much slower than I think it should be. In part because my servers has a 2048 character url limit. Is the...

[Symbian] Using Browser Control's PostUrlL API

Hi All, I'm trying to POST some multipart form data to my server using a Browser Control. The PostUrlL(); Method Panics with KERN-EXEC 3 as soon as it is invoked. Here's a snippet similar to the one I'm using in my code. // These LITerals are copied to pointer vars below _LIT8(K_txt_Boundary, "0xABeR1122EEFFx0"); _LIT8(K_CT_Multipart...

How can I send XML from a Java application and print it with PHP on the server, using HTTP POST?

Usually when I get POST data it's send from a HTML form and the parameters has names, i.e. from <input type="text" name="yourname" />, then I can receive and print this data with php echo $_POST['yourname'];. Now I am implementing a Java application that should POST data in XML format to a specified URL. I wrote a simple PHP page that I...

Get source of a website which requires post login

Hello, I wan't to write a script to get the source of a website which requires a post login. I need a shell script to do this. I want to parse some information. Any idea which language is the best choice for handling the http request and maybe cookies? Thank you. ...

Problem with POSTing XML data to an API using Java

I'm having problem with sending XML-data using HTTP POST to an API. If I send well formatted XML, I get an error message: Server Exception: Cannot access a closed Stream If the XML isn't well formatted, I get HTTP 500. And if I just send an empty string instead of a string with XML, I get back an error message: EMPTY REQUEST. I ...

how to send data from android to server

hi expert, I'm exploring to scan ssid and rssi from android and I'm able to do it, but now i have want send the data to the server, so i explore i found below code HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("http://101.34.45.45/rawData"); try { List<NameValuePair> nameValuePai...

ASP.NET File Upload

Hi there, I am trying to make a server page (C#, asp.net 2.0+) to save an uploaded file from another page. Specifically, I have an HTML page with a <form action="upload.aspx"> and I can't figure out how to handle saving the file on the server in upload.aspx. I found a few examples (one being: http://msdn.microsoft.com/en-us/li...

android http post with parameter

I want to send data to server from client(Android), below is my format http://101.34.45.45/rawData?data={"userId":"guest1","timestamp":"2010-07-01 08:58:23","wifi":[{"ssid":"guest","rssi":"40"},{"ssid":"guest1","rssi":"80"}]}, i'm trying series of trial but no use, how this can be done? ...