Hi,
I have a list of object that i loop through, and in this loop i have an async webrequest that is getting a response from a site, according to the current object's data.
How can i wait for each async request to complete b4 going to the next object in the list?
Should i use application.doevents?
...
I need to set the port of a HttpRequest. This is the port the Request is coming FROM.
Normal HTTP scenario:
Request: 127.0.0.1:6745 --> www.stackoverflow.com
Response: 1227.0.0.1:6745 <-- www.stackoverflow.com
Request: 127.0.0.1:8096 --> www.stackoverflow.com
Response: 1227.0.0.1:8096 <-- www.stackoverflow.com
My scenario:
Request: ...
I add a button in Adobe InDesign with an action to perform request xml from restful webservice, but I couldn't find any objects like XMLHttpRequest or ActiveXObject. I don't know there is any object in sdk that lets me do that job?
...
I had seen developer tools in Safari. But does it shows net request? like we see in firebug..
How to see net request in Safari.
Currently I am using safari webkit.
...
I have a server which will take many seconds before it is able to respond to an HTTP Request. I have little influence over the client language / framework used to generate the requests and want to know how long they will wait for a response. I appreciate this will vary for different frameworks / APIs so I want to know the default values ...
I'm trying to programmatically search for an item on the said website.
Following does not work for me. Response is actually an error page, instead of the search result page.
Pls help.
string sUrl = "http://www.arrownac.com/";
string sUrl1 = "http://app.arrownac.com/aws/pg_webc?s=P";
HttpWebRequest owebreq = (H...
Hi, I am trying to log into my EBay account using C#. I have looked at various posts and found the following 3 options. Unforunately, none of them are working. I am also listing the response header values that I get and that Fiddler shows when doing a login. There is a difference as I only get one "Set-cookie" value and Fiddler shows 10 ...
I wonder how do I check how much of a file has been uploaded/downloaded? I am using HttpWebRequest
...
function do_post_request($url, $data, $optional_headers = null) {
$request = new HttpRequest($url, HttpRequest::METH_POST);
$request->setBody($data);
$response = $request->send();
return $response->getBody();
}
This piece of code doesn't seem to be working, and seems to crash my script. I don't know if its bec...
I have a HttpHandler which queries 3 web services within a single request and store the results in a single cookie.
As you would imagine, the results collide. Here is how:
Process is as follows:
when i query service 1 and waiting for the result, the cookie i m storing the results doesnt exist yet, then result comes from service 2 and v...
Hello Everyone,
I am connecting to a server which sends updates about financial information. The code I post below will work correctly for a few minutes then usually blows up when it tries to do an EndRead (where I have noted), because there was 0 bytes at that moment to be read. Obviously in the financial world some things can stay t...
We are getting a really rare error during HTTP requests:
System.Net.InternalException: System error.
at System.Net.HttpWebRequest.SetAndOrProcessResponse(Object responseOrException)
at System.Net.ConnectionReturnResult.SetResponses(ConnectionReturnResult returnResult)
at System.Net.Connection.ReadComplete(Int32 bytesRead, WebExceptionSt...
I don't really understand the flow/workings of async methods. I have created a WebRequest that posts data to the server. It contains alot more code than if I used normal methods.
I noticed in all callbacks, I get the request from result.AsyncState. Also say just to write to the request stream, I need to have 1 callback (reqCB) ... Its ...
I am having difficulties figuring out what is causing wierd characters to appear in my output stream ... full code @pastebin
Fiddler output
notice the "s", "X", "�" before my boundary?
s---------------634227387532666996
Content-Disposition: form-data; name='key'
c06f4d0cdf6f2cc652635a08be34973d
X---------------634227387532666996
Cont...
What features do you want to see in System.Net.HttpWebRequest and System.Net.WebClient that are not included out of the box?
What cannot or cannot be easily achieved with those classes?
I'd like to be able to:
Use bandwidth throttling when downloading (useful for large files).
Upload multiple files and key-value pairs via HTTP post ...
The following line:
page_source = Net::HTTP.get(URI.parse("http://not-a-real-url.com"))
When passed a url that is properly formatted, but doesn't go anywhere (like the example above), dies out with:
getaddrinfo: nodename nor servname provided, or not known
I'm trying to figure out how to "begin / rescue" this condition, but I can't...
I'm sending an HTTP PUT request from a WinForms application and I'd like to send a slow trickle of PUT data to the page that will write messages into a database as the PUT data arrives. I'm using WebRequest and I've set SendChunked to true, but it only seems to send a chunk after 8KB of data have been written to the request stream.
Even...
hi, i am a metatrader developer. it has it's own script language which is similar to C in syntax. one of it's most advantages is that it let you include some dll and use it's functions.
now, i want to send and receive HTTP requests. which DLL should i use and how?
in PHP context i always use cURL library. does it have any DLL that coul...
Hi,
Basically I have the following in my .htaccess file in the root of my site:
Options -Indexes
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=$1 [L,QSA]
</IfModule>
In my PHP script when I use $_GET['route'...
I am trying to send an xml formatted document that I create to a phone and I keep getting a response back of 301 XML document not valid. I went on the W3C website and tested the string and it seems fine... here it so people see it.
I was using php orgionally with cURL and here is what that looked like.
XMLData = urlencode($X...