Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
533 views

Asp.net C# How to send file and message to client?

1- I would like to send a .zip folder with password to client and 2- send the password to the bottom of the user's page. and 3- send a warning to raise security awareness to user In my HttpResponse, I ...
Rem4000's user avatar
  • 11
2 votes
1 answer
5k views

How to access Content-Disposition header in HttpClient response

I want to download a file from a server and save it with the filename suggested by the server (using Content-Disposition header). I am using HttpClient to download the file. The problem is that I ...
zdevaty's user avatar
  • 792
1 vote
1 answer
3k views

Convert HttpWebResponse to HttpResponse

In C# or VB.Net, there is a way to translate an HttpWebResponse object to an HttpResponse, or get directlly an HttpResponse from a HttpWebRequest instance? Example of what I try to do (it does not ...
ElektroStudios's user avatar
0 votes
1 answer
1k views

Get Web Response Status Code properly Asynchronously

I'm searching for a solution in C# or else VB.Net for this problem. Using a WebClient I would like to retrieve the server response of UploadValuesAsync method asynchronously but I can't figure it ...
ElektroStudios's user avatar
0 votes
1 answer
769 views

Get Web Response Status Code properly

I'm using Imgur's API to upload an image file anonimouslly. The problem is with the function below, I'm trying to retrieve and parse the response code on the Select Case, but if something goes wrong (...
ElektroStudios's user avatar
1 vote
2 answers
1k views

How to cache image returned by HttpResponseMessage

I have a problem with caching images returned by HttpResponseMessage. Files are accessed by urls: http://localhost:[service port]/[file GUID]?Adapter=[adapter type] eg: http://localhost:59292/...
Wojtek's user avatar
  • 1,390
0 votes
1 answer
2k views

Get response Uri from apache HttpResponse and parse it (java)

I need to get the response uri from the HttpResponse and parse it into name-value pairs. I need the analog for the following .NET fragment: string authorizationRequestParameters = string.Format("...
Sergey Shafiev's user avatar
183 votes
9 answers
477k views

.NET: Simplest way to send POST with data and read response

To my surprise, I can't do anything nearly as simple as this, from what I can tell, in the .NET BCL: byte[] response = Http.Post ( url: "http://dork.com/service", contentType: "application/x-...
AgileMeansDoAsLittleAsPossible's user avatar