Questions tagged [webresponse]

135 questions
0
votes
1 answer

making WebResponse GetResponse WebBot wait for redirect

I am making a bot that simulates a human user using a specific website. When the user uses the site here is what happens the user uploads a file by using the site's Browse button and then clicks Upload the server responds immediately and the user…
pdschuller
  • 584
  • 6
  • 26
0
votes
2 answers

Webresponse/Webrequest not working

My program uses WebRequest and WebResponse in order to download a HTML file from a given URL in an iteration. For example, the URL string will look something like http://www.aaaa.com/cccc=varB where varB is a different string for each iteration…
ShadowCrossZero
  • 379
  • 2
  • 6
  • 16
0
votes
2 answers

How can I scrape an image that doesn't have an extension?

Sometimes I come across an image that I can't scrape so that it can be saved. An example of this is: https://s3.amazonaws.com/plumdistrict.com-production/perks/12321/image/original.?1325898487 When I hit the url from Internet Explorer I see the…
Mohammed Ali
  • 1,027
  • 1
  • 9
  • 16
0
votes
1 answer

Using HttpWebRequest, WebResponse is uncompiled aspx page when uploading file to SharePoint

This is a weird one. For years, a bit of code to upload files to SharePoint has been working on my dev machine. It just stopped working the other day! No exceptions are being thrown, but there is a weird response string coming back in the…
Zarek
  • 939
  • 3
  • 13
  • 21
0
votes
3 answers

How to get redirected url as string after request

For example on any tinyurl/ajdeijad link (this one is fake), the think redirects to another url Here is my code: Dim request1 As HttpWebRequest = DirectCast(HttpWebRequest.Create(urlvimeohd), HttpWebRequest) request1.UserAgent =…
Imran Ahmed
  • 356
  • 7
  • 17
0
votes
1 answer

HttpWebRequest return a WebResponse with strange numbers

i have a strange problem. When i get the response of a httpwebresquest, some numbers appears in the middle of the html text. For example: < input type="hidden" name="productid" value="7220701403 841 89620" > That 841 is a number that should not…
Gabriel
  • 879
  • 1
  • 13
  • 33
0
votes
0 answers

SSL webrequest, Could not create SSL/TLS secure channel

I am trying to create a webrequest to optimile soap services to gather some data. I have this all running perfectly on my laptop, but when i tried to push it to the server suddenly it started giving me "The request was aborted: Could not create…
0
votes
0 answers

.NET won't download full XML response from REST API

When downloading an XML response from a REST API, I cannot get .NET to download the full XML document on many requests. In each case, I'm missing the last several characters of the XML file which means I can't parse it. The requests work fine in a…
Rick
  • 1,863
  • 2
  • 19
  • 46
0
votes
0 answers

What is the proper way to read multiple Http Responses from a single Http Request (C# / .NET5 )

I am trying to connect to an existing Service that listens for POSTS and responds with data. Please note: The existing service has multiple versions and is out in the field, so modifications to the Service itself is not desirable. When I POST…
0
votes
1 answer

HttpWebRequest Capture Response Even If 500 Internal Server Error Details

When the wrong answer(500) comes from Soap Web Services, i want to see the error details. I can use soap tool, i can do this process using a soap tool and see the error details. But using the WebResponse class in c#, i cannot see the error…
ibaris
  • 146
  • 2
  • 10
0
votes
0 answers

Why is WebResponse truncating XML?

I have the following code, sometimes its fine but others it truncates the xml, so i think its something to do with the length as it just splits in the middle of an xml tag. using (WebResponse response = request.GetResponse()) …
EmC
  • 9
  • 2
0
votes
1 answer

Soap response truncated (SoapUi returns correct response)

Actually I get a truncated soap response. SoapUI returns the response NOT truncated so I assume the issue is somewhere in the way I retrieve the response. this is how I get the response. request is of type HttpWebRequest ... using (WebResponse…
Martin Felber
  • 121
  • 17
0
votes
0 answers

Using statements and reading files

I have code that contained two using statements. The Inner using statement is reading a response stream and the outer is opening a file to write the response too. The following code works fine (sfd is a SaveFileDialog): using (Stream fs =…
Keenan Stewart
  • 594
  • 6
  • 9
0
votes
1 answer

System.Net.HttpWebRequest.GetResponse() error "You must write ContentLength bytes to the request stream before calling [Begin]GetResponse."

I have a method that uploads files to our server. I'm seeing the error in the title when trying to upload a large file. I've tried increasing maxRequestLength from 35480 KB in web.config but I'm still seeing the error.
0
votes
0 answers

how to capture data from a webresponse/streamreader and write it back in console?

I created a web request with post data then getting a response telling me if it contained something, and my question is on how to also capture something else from the response and write that in the console. Do I have to create a separate GET…
1 2 3
8 9