Hi,
I have a url and I want to retrieve the html dom generated when going to the url (all the code for the page) in a javascript variable.
How can I do this? I'm guessing an html get or post? Can anyone give an example with jQuery?
Every time I do a $.get or $.post like this:
$.get("http://www.google.ca", function(result) { alert(res...
Hi,
I am wondering, if I create a new HttpRequest, and put the content of a simple file inside this request, would I be able to read the content on the server side by aspx page? in other words would that be equivalent to upload control?
Thanks!
...
I have a silverlight library that is supposed to get make a web service request and receive an xml response:
Uri uri = new Uri("http://some_server:51306/getStuff.xml?id=14");
WebRequest request = WebRequest.Create(uri);
However, WebRequest.Create(uri) fails with the exception "The URI prefix is not recognized".
Not...
I have a client and a server.
On the client side I have:
HttpWebRequest request =
(HttpWebRequest)WebRequest.Create("http://localhost/fa/Default.aspx");
request.Method = "POST";
byte[] data = Encoding.ASCII.GetBytes(GetSAMLRequestB64());
request.ContentType = "text/xml";
request.ContentLength = data.Length;
Strea...
Hi guys
I'm trying to scrape a quote engine but HttpWebResponse returns only the "please wait" screen, not the final result.
Is there a way to make the request wait for the response? Status codes won't work because the "please wait" screen returns 200. - I guess it redirects after it retrieved the results from the database but that red...
I have a flash application that sends HTTP Request to the server and get back data. Very standard way.
So, when I send HTTP request in Flash, can I see the request header in the client side? e.g. using Fiddler, Firebug..etc.
I tried Fiddler and Firebug, and it 'seems' like the request is hidden or not catch by the program.
if I ca...
After googling for couple of days, I really cannot solve described issue. Hope here will find a solution
I'm using attached code when calling WCF service on the same server. I get Timeout error randomly in call WebReq.GetRequestStream()
When I'm check netstat I see that connection remains open, so probably is there a problem, but I don...
As some of you may know, you are able to POST with C#. This means you can "push" buttons on a website with webrequest/response. Now there are also buttons on sites which work with javascript, they start like:
(function($j){
$j.data(document, 'maxPictureSize', 764327);
share_init();
})(jQuery.noConflict());
Is there any solution you c...
Hi all!
The problem is as follows:
An external server sends incoming SMS messages converted to HTTP requests into my sometimes very time-consuming .aspx page. If no response is returned to the external server in 20 seconds, this is considered as an timeout and the same message is sent to my aspx page again (and maybe again....)
The opt...
Hi
I am writing a small silverlight app just to try silverlight. My idea is to make a small app that checks if websites are online. It works by the user inputting a URL and my app checks it uptime every 5 minutes.
But when ever I do a webrequest I get the security exception below. Reading http://msdn.microsoft.com/en-us/library/system....
Hi,
Anyone have an idea offhand regarding why a link with an "@" in it works on my browser, but when I go to get this particular link in my HttpWebRequest code I get a 405 error?
The remote server returned an error:
(405) Method Not Allowed.
The example link in question:
http://internal_link/@api/deki/site/logo.png
thanks
...
hi i want to read request stream from a custom httpWebRequest class that inherits from httpWebRequest and i have tried to read the request stream in different stages but sitll not sure how to archieve that in the class,thanks very much for any help.
This custom httpWebRequest is used to serilize soap message and i want to know what requ...
Is it possible in Silverlight 3 to set a proxy url for http requests?
I want to make a request outside of local network (intranet) and need to set a proxy to do this.
...
Having a problem with HttpWebRequest decoding my encoded URL.
var requestUrl = "https://www.google.com/webmasters/tools/feeds/http%3A%2F%2Fwww%2example%2Ecom%2F/crawlissues/";
var request = (HttpWebRequest)WebRequest.Create(requestUrl);
When looking at end request URL is becomes:
https://www.google.com/webmasters/tools/feeds/http:...
Hi all,
I have Windows application, and I want to post data to an Url to get information from a webservice.
This is the code I use:
private string PostData(string url, string postData)
{
HttpWebRequest request = null;
if (m_type == PostTypeEnum.Post)
{
Uri uri = new Uri(url);
request = (HttpWeb...
Hi everybody,
if I want to partially download a file and define a single range in the request Header, I get
the byte-stream of the requested file in the response body.
But if i specify multiple ranges as below, I always get for each defined range an additional
response header (wich describes the requested range) within the response bo...
My website sometimes loads a bit slow, due to the amount of images loading. I actually have 61 images on my homepage due to all the png overlays and icons. I have considered using sprites or an image map, but I really don't feel like doing this. I know that there can only be 2 requests to my server, so if I host the images elsewhere, it ...
there is a space after the word Part in the file name I want to download. It looks like http.get doesn't pass the url_path correctly because you can download the file from the browser without any troubles.
any suggestion how I can download a file if there is a space in the file name?
require 'net/http'
url = "http://www.onalllevels.co...
Is there another way to easily make a POST request in .NET other than the WebRequest class? I have a very, VERY small piece of data I need to post:
password=theword
...but WebRequest randomly, and I mean randomly, drops the data when posting to my server. I've tested it by using a chunk of code from my server that dumps the reque...
Hello,
Our c#.net software connects to an online app to deal with accounts and a shop. It does this using HttpWebRequest and HttpWebResponse.
An example of this interaction, and one area where the exception in the title has come from is:
var request = HttpWebRequest.Create(onlineApp + string.Format("isvalid.ashx?username={0}&password=...