Tagged Questions
2
votes
2answers
12k views
Apache HTTP Client, POST request. How to correctly set request parameters?
I'm using Apache HTTP Client and I need to send a POST request to my servlet.
When the request is sent my servlet does not receive any parameters (in the HttpServletRequest).
Here is the client ...
0
votes
0answers
23 views
android http post login in my.beeline.ru
First: sorry for my English.
I need to log in into a website https://my.beeline.ru/mLogin.html. I wrote next code:
HttpClient httpClient = new DefaultHttpClient();
HttpParams httpParams = ...
0
votes
1answer
72 views
How do I POST a httpclient to a WEB API? (simple as possible way for my highscore table)
My windows phone client sends a piece of JSON that represents the Name and Score... Should I be using the Class from the Web API instead ? What is the code to send the object to the server rather than ...
0
votes
1answer
554 views
Can't POST MultiPartEntity in Android application
I am trying to send an image using MultiPartEntity and HttpClient in Android, but keep getting the exception: java.lang.UnsupportedOperationException: Multipart form entity does not implement ...
0
votes
1answer
63 views
Android 4.1.2 HttpClient - can not get cookies
I have a problem whith cookies on android 4.1.2 . My aap correctly work withs cookies on android 2.+ and android 4.0 but on android 4.1.2 i can't get cookies from server after sending http post ...
0
votes
1answer
503 views
Android DefaultHttpClient POST method Can't set Content Length, getting Http Error 411
I am having problem with an HttpPost on Android 4.2. I am trying to call an authentication service that is hosted in a .NET WebAPI service.
The service requires that the request be made as a POST ...
0
votes
1answer
70 views
HTTP Post to Php isn't working
The code isn't working. Please help. The item gets added to the database except for the quantity. It's always zero. Why is that?
String value;
@Override
public void onCreate(Bundle ...
13
votes
2answers
21k views
Apache HttpClient 4.0.3 - how do I set cookie with sessionID for POST request
can you tell me how to store jsessionid in cookie, so it can be passed to the servlet with post request? I'm using Apache HttpClient version 4.0.3.
All the solutions I've found explains how to do this ...
0
votes
0answers
57 views
Why won't Silverlight 5 obey HTTP 302 messages
I have written an application written in C# within Silverlight 5 (using VWD 2012).
This application 'logs in' to websites (quite legitimately) using HttpClient GetAsync and PostAsync requests.
...
2
votes
2answers
7k views
Add parameters to Apache HttpPost
I'm trying to send a file to a Servlet.
Along with this file, I also have to send some parameters (i.e. name/id, date and a few others). I'm using HttpClient on client-side and ServerFileUpload on ...
4
votes
3answers
5k views
JAVA - Download Binary File (e.g. PDF) file from Webserver
I need to download a pdf file from a webserver to my pc and save it locally.
I used Httpclient to connect to webserver and get the content body:
HttpEntity entity=response.getEntity();
...
1
vote
3answers
533 views
Async POST request in C# .NET
I'm trying to upload a data over network using HttpClient / HttpContent
However I can't seem to find a proper way to send a file this way.
Here is my current code:
private async ...
0
votes
0answers
966 views
HTTP POST request with multipart/form-data in Java
I need some help to do a java program that post in a https site. I dont know how to put the
parameters because it a multpart form data contect type..
Please help!
when I do a post with firefox its ...
0
votes
0answers
76 views
Internal server error while making Post
I try to write Http Client to use WebAPI controllers.
Methods get work. Methods Post and Put = doesn't. Here is a code of Post method:
// Create the JSON formatter.
MediaTypeFormatter ...
3
votes
1answer
182 views
411 Content-Length Required
I am trying to do a POST using the Android Apache HttpClient but it is returning error 411 Content-Length Required. Here is the code.
HttpClient httpClient = new DefaultHttpClient();
...