Questions tagged [webresponse]
135 questions
0
votes
2 answers
Downloading response from WebResponse - images included?
I'm trying to download HTML so I can parse it using the minimum bandwidth to download. This is a bit of my code.
if (!String.IsNullOrEmpty(siteAddress))
webReq = WebRequest.Create(siteAddress)
WebResponse webRes =…

MHTri
- 910
- 2
- 10
- 30
0
votes
1 answer
Get scripts communications responses in HtmlUnit
I want to get data actualization in a dynamic web.
Watching into Chrome Dev Tool I see that the web makes continuous URL get requests to obtain json data or it gets them using websockets.
I was trying to obtain all the responses that the web obtains…

Jorge
- 77
- 1
- 9
0
votes
0 answers
second time proxy validation failing with webRequest API
in Windows application, webRequest.GetResponse() Behavior :
1) First time, I tried with "invalid user name/ credentials" and getting the below error.
"ERROR: The remote server returned an error: (407) Proxy
Authentication Required."
and now I…

RJV
- 55
- 11
0
votes
4 answers
C# - Saving Audio File using Google TTS Service
I am trying to build a sample which send a very short sentence (less than 100 char) google tts service which returns a audio stream. I am trying to save this stream into a file but when open it, Buf after writing following file, i am able to open it…

Mubashar
- 12,300
- 11
- 66
- 95
0
votes
1 answer
C# WebRequest/Response - Error 500 - Catch Error
I have following problem:
My tool checks every 6min a RSS-Feed.
This works perfectly but the server on which the RSS-Feed is hosted, is sometimes not available for some seconds. The "check"-part runs 24/7.
So sometimes it throws an error: 500 -…

RedP1ll
- 3
- 4
0
votes
0 answers
C# WebRequest - WebResponse to POST a webform with random generated token
I'm trying to login to www.autoscout24.de and retrieve adds and messages. Login form has a random generated hidden input/token. Being new to C#, I've read different tuts about using C# to login to websites and all I found was simple codes that work…

user3120048
- 33
- 7
0
votes
1 answer
WebRequests/Responses Slowing down after many calls
i have this method:
private void sendSms(object url)
{
var Url = url.ToString();
webRequest = WebRequest.Create(Url);
// webRequest.BeginGetResponse(this.RespCallback, webRequest);
webResponse =…

Stacker
- 8,157
- 18
- 73
- 135
0
votes
1 answer
Sorting Json data
I hate some trouble sorting the data I recieve from a webresponse.
Right now they come in "random", and I haven't been able to sort it at all.
Right now the partial class looks like this:
namespace computers{
using System;
using System.Net;
using…

AlWooz
- 23
- 6
0
votes
1 answer
Prevent errors when doing a Webrequest in VB.Net
I receive three errors using the following function:
Private Sub readWebpage(ByVal url As String)
Try
Dim req As System.Net.WebRequest = System.Net.WebRequest.Create(url)
Dim resp As System.Net.WebResponse = req.GetResponse
…

PeeHaa
- 71,436
- 58
- 190
- 262
0
votes
1 answer
C# - HttpWebRequest / GetResponse performance
I have a HTTPS based API which I need to call a lot of times. Using HttpWebRequest.Create(uri).GetResponse() takes from 50ms up to 500ms or more to execute. In order to check the response time I implemented it like this:
private void Action()
{
…

Hubbs
- 163
- 11
0
votes
1 answer
C# HttpWebRequest and Javascript based form submittion actions
I am trying to make a simple web crawler as a learning experience and I have hit a wall. I am able to set cookies, get cookies, and keep cookies over a session however I am now stuck when attempting to submit login information. Looking at the source…

CanisUrsa
- 465
- 1
- 4
- 10
0
votes
1 answer
Can we call aspx page which is a part of web service through a web application + consume webpage response from other page
I have written a sample web service, which consist of certain .aspx pages. I have written a code to consume webmethods from that web service.
Now, is it possible to load the aspx page which is a part of the web service from the calling web…

VJOY
- 3,752
- 12
- 57
- 90
0
votes
1 answer
C# Stream keeps skipping first line
alright I'm doing something that should be rather simple, I believe I am overlooking something here.
Alright I and using a HttpWebRequest and a WebResponse to detect if a Robots.txt exists on a server (and that works perfectly fine). However, I am…

n1warhead
- 19
- 6
0
votes
2 answers
Response JSON Request
I am trying to use JSON .NET with a WebRequest, to retrieve JSON using "GET". Essentially, I am stuck on the parsing part and grabbing the item to test. The WebResponse, how would I go about retrieving the JSON file using the webResponse? The…

Helladen
- 25
- 5
0
votes
1 answer
Pause Download & Resume (Merge The Existing File)
I'm making a downloader using C#, I want to add a feature of Pause & Resume download, I googled & implemented the suggestions but it didn't work for me; was resuming from the correct position but had problem merging with the downloaded part. I…

KhanZeeshan
- 1,410
- 5
- 23
- 36