Questions tagged [getresponse]

139 questions
10
votes
1 answer

WebRequest.GetResponse locks up?

When writing the below my code locks up on GetResponse. Why? try { WebRequest myWebRequest = WebRequest.Create(strURL); WebResponse myWebResponse = myWebRequest.GetResponse(); //more code here
user34537
10
votes
7 answers

WebRequest fails with "414 Request URI too long" in ASP.NET application

We have an ASP.NET application that requests an SSRS 2005 report in HTML format after passing the parameters for the report as a WebRequest. The application only fails when a report with a large number of multi-select parameters is requested,…
BIdude
  • 101
  • 1
  • 1
  • 5
8
votes
3 answers

c# httpwebrequest getResponse() freezes and hangs my program

I was trying to use httpwebrequest to use a rest like service on a remote server and from the first execution itself, my code was hanging the program. Then I tried it as a console application to make sure it has nothing to do with the program itself…
Rick
  • 91
  • 1
  • 1
  • 3
7
votes
3 answers

getClass().getResource(resourcePath) valid on windows, null on Linux

I have a problem, this call URL fileURL = getClass().getResource(resourcePath); works on Windows (7 64b) but not on linux (Ubuntu 13.10 64b) where it returns null. Why? File is there and the string is the following (relative path) String…
elect
  • 5,677
  • 9
  • 44
  • 97
5
votes
3 answers

How to make checkbox checked by default? In Woocommerce checkout

Have a wordpress site with woocommerce I installed the Getresponse Woocommerce Integration plugin and really need the checkbox at checkout to be TICKED by default (they tick a box "sign up to our newsletter" to join our email list) Been trying…
apemusic
  • 91
  • 2
  • 5
4
votes
4 answers

HttpWebResponse get stuck while running in a loop

I build this method (c#) in order to receive the HTTP response status code from an URL. whene I run this method ones it's works fine, but when I run it in a loop, the third time its stuck. any clue?? public static string isAlive(string url) { …
3
votes
1 answer

How can I get a response from a server in WP7?

I'm trying to send a request with the HttpWebRequest class on WP7, but I don't get any response... Here is my code: InitializeComponent(); HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.google.com/"); …
laszlokiss88
  • 3,883
  • 2
  • 17
  • 25
3
votes
1 answer

HttpWebRequest.GetResponse: "The underlying connection was closed: An unexpected error occurred on a receive."

I've written a C# Windows service (.NET Framework 3.5, C# 3.0) that posts files & HTML form information to a remote server, and then stores the XML server response in a database. Here is the main chunk of pertinent code: HttpWebRequest request…
Mass Dot Net
  • 1,921
  • 9
  • 32
  • 40
3
votes
1 answer

Request.GetResponseAsync() doesn't work in Background Task, no exception raised

I'm doing an Universal Windows Platform app with Visual Studio and i'm facing a very strange problem. It's a Background Task on a Windows Runtime Component. The Background task executes without problem if the problematic part of code is removed.…
Adelaiglesia
  • 325
  • 1
  • 3
  • 16
3
votes
2 answers

StreamReader returns empty string

I have the following code: System.Net.WebRequest req = System.Net.WebRequest.Create(url); req.Credentials = new NetworkCredential("admin", "password"); System.Net.WebResponse resp = req.GetResponse(); System.IO.StreamReader sr = new…
shakarchi
  • 43
  • 1
  • 4
2
votes
1 answer

Trying to save contacts with GetResponse api but I am unable to

My task is to authenticate on this api https://api.getresponse.com/v3/accounts Then need to save on the following api https://api.getresponse.com/v3/POST/contacts data must be in the following format { "name": "Hemant Maurya", "email":…
2
votes
3 answers

Simple XML HttpRequest question

I'm trying to launch a request for some data from an external website w/ an API. If I copy paste the request into my web-browser it works fine. Example such as (http://example.com/json/user/search/all) I can see the results in the browser…
CTC
  • 23
  • 1
  • 3
2
votes
1 answer

The operation has timed out at System.Net.HttpWebRequest.GetResponse() while sending large number of requests to a host

I am sending a large number of simultaneous requests to a particular web service with different data. To achieve this, I have created a number of threads(around 50 in number). Total number of requests per minute may increase up to 10000. The…
pull420
  • 88
  • 2
  • 8
2
votes
1 answer

python http client no response reason and incorrect response status

I'm using python 2.6 to create a HTTPS client that can POST XML data. So far it is able to POST to a HTTP server I also wrote. The issue is that when I try to return the status and reason from the response, it isn't correct. The HTTPS server should…
luker3
  • 21
  • 1
2
votes
0 answers

Restful Webservice method for get request

I am trying to write a web service method for get request and its return type is ResponseEntity. But when i trying to run this from Postman then its gives response body as Not acceptable. following is the result and code of my method. …
1
2 3
9 10