Questions tagged [http-put]

HTTP PUT Uploads a representation of the specified resource.

HTTP PUT Uploads a representation of the specified resource.

277 questions
0
votes
1 answer

Problems issuing a Put method to an online database

I am trying to issue a Put on an online database that I have here is my code @Override public void onRatingChanged(RatingBar arg0, float arg1, boolean arg2) { try { RatingBar rb = (RatingBar)findViewById(R.id.ratingbar_item); float…
0
votes
1 answer

How do i upload a file using HTTPUrlConnection urlConnection.setRequestMethod("PUT"); or HttpPut?

So, I can't get rid of this problem: I need to upload a XML file and a .jpg file from my android app(API 8) to a HTTP server (win 2008 server with IIS 7.5). I've already enabled PUT verbs and uninstalled WebDav & webdav methods as suggested from…
JJonDuty
  • 123
  • 2
  • 7
0
votes
1 answer

HTTP Put set content type

How can I set content type of HTTP Put as xxxx+xml? I was referring to solution in this link Android, sending XML via HTTP POST (SOAP). Its fine when we set content type like this, i mean the xml is came along with the…
dejoong
  • 2,213
  • 5
  • 25
  • 24
0
votes
2 answers

Android HttpPut Has No Body, Despite Setting the Entity

I'm trying to PUT some XML to a server, but the gist of it is that no matter what I do, HttpPut simply won't put anything in the Http body. The server always comes back saying that the body is missing, and looking at it through Wireshark, nothing is…
boztalay
  • 562
  • 6
  • 17
0
votes
0 answers

How to get multipart contents using the PUT method in Spring MVC?

I was fumbling to use RequestMethod.PUT (and RequestMethod.DELETE) as described in my previous question. At last the approach worked but when I designate a method with RequestMethod.PUT in my Spring controller, this method is called when the form…
Tiny
  • 27,221
  • 105
  • 339
  • 599
0
votes
1 answer

Android HTTP PUT request returns 411 error only on Android 2.1

I have an app here that sends out an HTTP PUT to a webserver. The code looks like this: URL url = new URL(urlStr + "?" + encodedParameters); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); …
Cruinh
  • 3,611
  • 4
  • 38
  • 45
0
votes
3 answers

Can I do a 'PUT' ajax call to a local file similarly to how 'GET' works?

If I load an HTML from file:// and in the HTML there's an AJAX 'GET' request to a relative URL, it means the URL is pointing to a file and the file is loaded. Can I have a similar behavior for 'PUT'? Meaning overwrite the file's content with the…
IttayD
  • 28,271
  • 28
  • 124
  • 178
0
votes
1 answer

Query parameters sent with HttpPut Request not being read properly

I am trying make an HttpPut Request to the server and send some parameters with it, but however I think that the parameters are not being detected due to which the server send an error message. My Code is: URI url = new…
dehsams123
  • 251
  • 2
  • 7
  • 18
0
votes
1 answer

RestKit PUT not working

I'm trying to do a fairly basic HTTP PUT using RestKit. I don't want to put the entire object, since the API call was designed to accept a single query parameter and just update that field. I've tried two approaches so far, both unsuccessful. URL to…
Kyle Clegg
  • 38,547
  • 26
  • 130
  • 141
0
votes
1 answer

Upload a file using a PUT request in Java with upload progress

I'm trying to do something really simple, but so far I've been unsuccessful in trying various methods of making it happen. I've tried uploading to a URL using a simple java.io.Socket, using a java.io.HttpURLConnection, and last using a…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
0
votes
1 answer

Parameters for a Ruby HTTP Put call

I'm having trouble getting parameters passed in an HTTP Put call, using ruby. Take a look at the "put_data" variable. When I leave it as a hash, ruby says: undefined method `bytesize' for # if I convert to a string, I…
tpow
  • 7,600
  • 11
  • 59
  • 84
0
votes
1 answer

How to use tomcat to receive and response the HTTP PUT?

The device sends an HTTP PUT request to the tomcat server.And server response '200(OK) status code to indicate success. But I don't know how to receive and response using tomcat .Thanks for any help very much.
zorro
  • 117
  • 7
  • 11
0
votes
2 answers

Http Put Request

I am using the HttpPut to communicate with server in Android, the response code I am getting is 500.After talking with the server guy he said prepare the string like below and send. {"key":"value","key":"value"} now I am completely confused that…
Om Narain Shukla
  • 361
  • 1
  • 4
  • 12
-1
votes
1 answer

Inline component is not defined or not allowed (HTTP PUT)

I have been looking at this for quite some time and I don't know why it fails, because in another controller I have the same code and it updates the model. What do you think it could be? onAcepta: function(oEvent) { var oModel =…
JK97Tae
  • 28
  • 8
-1
votes
1 answer

How can upload file wilth httput without param key?

I used to make the thhpput call by passing parameters like this picture httpput with param now i want to to change with body binay methode like this picture httpput body binary i found the solution in ios : [request setHTTPBody: dataToUpload]; I…
1 2 3
18
19