Questions tagged [webrequest]

WebRequest is an abstract class in .NET Framework for making requests to URIs (including HTTP, HTTPS, FTP and FILE protocols). Related tags: [httpwebrequest], [ftpwebrequest].

WebRequest is an abstract class in .NET Framework for making a request to a Uniform Resource Identifier (URI).

MSDN documentation for WebRequest.

1600 questions
0
votes
1 answer

Efficiently Upload Output to Server

I have created a Simple Aspx Page to Log the Output of a Process running on a Remote Machine. My url is:.com/Log.ashx?Data=SomeString Should I use WebRequest or a WebClient? What is more efficient and less resource intensive? I would need to do this…
John
  • 45
  • 6
0
votes
1 answer

C# Webclient not working properly

I've created a simple tool that can find Sign up option in websites (200 website list is in arraylist). I was using webbrowser but it has a problem of cache and cookie so i switched to webclient. It works fine when i put breakpoints and debug but…
Noobish
  • 1,107
  • 1
  • 14
  • 23
0
votes
1 answer

How to create Folder in Remote Location

Right now I have this code which creates a folder in the specified path.. protected void btnAdd_Click(object sender, EventArgs e) { albname = txtName.Text.ToString(); try { string targetPath =…
Guruprasad J Rao
  • 29,410
  • 14
  • 101
  • 200
0
votes
0 answers

How to download large xml file without timeout exception

As you can see my codes I want to download a xml file with webrequest. I set time out to max. value. But I always get time out exception. Do you have any suggestion? WebRequest webRequest = WebRequest.Create("*******"); webRequest.Timeout =…
cagin
  • 5,772
  • 14
  • 74
  • 130
0
votes
1 answer

Stream PDF from a server to a web client vb.net

We have a servlet that will deliver PDF reports to a browser. We also have a IIS server running .net apps and we want to return the PDF from the servlet as a stream to the .Net app and then the .Net app would render the PDF to the browser (we are…
Pete Helgren
  • 438
  • 1
  • 7
  • 21
0
votes
1 answer

Format TextBox.Text before sending WebRequest

I have rather very basic question. I would like to send a formated Text from WPF Multiline Textbox to Web application over HttpWebRequest. Till now I've managed to send plain text, so the connection is working. As an example, I've created a WPF…
Jim
  • 2,760
  • 8
  • 42
  • 66
0
votes
1 answer

Send httpwebrequest in Schedule/Background Agent

I am trying to send a http web request from a background agent. The code is as below. The json_Callback never gets triggered and my request doesn't reach the server. I have done all the exception handling and none of them get triggered. How to send…
0
votes
2 answers

Can you "Queue" webRequest to the background to speed up your program?

The slowest part of my code are these lines right here: string responseString; var webRequest = WebRequest.Create(url); using (var response = webRequest.GetResponse()) using (var sr = new…
Apollo Creed
  • 219
  • 3
  • 18
0
votes
1 answer

vb.net Doesn't return function

I tried program to login to warezbb, somehow i think it doesn't return or idk what the problem, help me out , even if i entered the correct login details it still came out "else msgbox" Public Class Form1 'From the code in the provided picture, you…
user2580549
0
votes
3 answers

Web Server URL - Detecting PathInfo Hierarchy

I have an HTTP Web Broker Server which needs to handle requests such as... http://myserver.com/versions/2013.6.0.0/ML/Files/SomeFile.exe The server its self just for reference is hosting information and specific individual files for automatic…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
0
votes
0 answers

Can't send GET parameters with WebRequest in C#

This has just gotta be dead simple. I have a web page that processes files on the server. I'm trying to call it and simply send the filename on the URL to kick it off but it's only calling the notificatin URL and not calling my parameters. What am I…
Codex
  • 131
  • 6
0
votes
2 answers

Loading large JSON file in C#

1) I need to download a large JSON file on a Windows Phone application, I would like to process the JSON as it is downloading, because otherwise the app just keeps downloading the JSON and this can take up to 10 seconds or more, is there any way to…
Schaemelhout
  • 685
  • 9
  • 25
0
votes
1 answer

Win Phone7 WebRequest Not returning on first call

I am creating an app that will talk to a HTTP Listener service. I have taken code from this Posting Posting with HttpWebRequest on Windows Phone 7 This code seems to work almost perfectly, it just doesn't work on the very first call. The call is…
Seige
  • 304
  • 5
  • 27
0
votes
0 answers

cannot open pdf in sharepoint uploaded by (Http)WebRequest

I use this code to upload pdf files to sharepoint in my WinForm application. it works. when I click it try to open in sharepoint, I got this "The document could not be opened for editing. A Windows SharePoint Services compatible application could…
weslleywang
  • 569
  • 2
  • 8
  • 21
0
votes
1 answer

Get Credential from App Pool for WebRequest

How do I use the App Pools Crendentials to authenticate a WebRequest? I have a web site that call a page from itself, but I keep getting 401....
Mesh
  • 6,262
  • 5
  • 34
  • 53