http

C++ Concurrent GET requests

I am writing a C++ application and would like to request several data files through a HTTP GET request simultaneously, where should I look to get started (needs to be cross-platform). Run Application Create a list of URLs { "http://host/file1.txt", "http://host/file2.txt", "http://host/file3.txt"} Request all the URLs simultaneously ...

Tool to view response headers

What is the best way to view the HTTP response headers from a request against a particular URL? Telnet or is there some other really good command or tool? ...

Modifying HTTP request and responses with a Browser Helper Object

I want to modify HTTP requests headers using an Internet Explorer Browser Helper Object. I basically need to change a few headers for every request, and then modify the response before it returns to the browser. I tried using the OnNavigate2 events, but those don't even give you access to all of the headers. I tried making an Asynchron...

Where do I find a test http server for simulating timeouts and error codes

I am thinking that this would be an Apache server with some custom pages, or possibly a java application. Used for browser or http client testing, it should give me a variety of 500 errors when a specific page is requested. Give me a page that responds in 5 seconds, 10, 30 or whatever. Give me a page where the first byte does not come...

When to send HTTP status code?

Currently in my PHP scripts, I redirect the user to a custom 404 not found error page when he/she tries to access content that doesn't exist or doesn't belong to that user. Like so: header('Location: http://www.mydomain.com/error/notfound/'); exit; I realize the above header() call sends a 302 redirect status code by default. What I ...

Intercepting requests made by WebBrowser in C#

Is it possible to intercept all requests made by a WebBrowser control? I want to modify the request URI of every single request (including requests for images, scripts, stylesheets, etc.) ...

ActiveMQ 5.2.0 + REST + HTTP POST = java.lang.OutOfMemoryError

First off, I am a newbie when it comes to JMS & ActiveMQ. I have been looking into a messaging solution to serve as middleware for a message producer that will insert XML messages into a queue via HTTP POST. The producer is an existing system written in C++ that cannot be modified (so Java and the C++ API are out). Using the "demo" ex...

HTTP 400 : detected invalid characters in the URL. IIS decoding URL too early? Whats going on here?

So i have this URL: http://test.com/afolder/who-else-wants-to-make-horror-movies%3f/ which is URL encoded version of : http://test.com/afolder/who-else-wants-to-make-horror-movies?/ But IIS7 throws a 400: HTTP Error 400.0 - Bad Request ASP.NET detected invalid characters in the URL. But why is it doing that if i have correct...

How do you do an HTTP Put?

I feel like an idiot asking this. In fact, after typing the title, StackOverflow barks at me, "That's not a very good title. Can you add some more unique words to it?" No I can't, SO; sorry. Here we go: We have this software that has a webservices component. Now, the administrator of this system has come to me, wanting to import data i...

how to compare a NSURLconnection http response data with a string value in iphone???

hi......i am new in iphone programming......i want to do an activation module which will send a http request with a PIN numbr and then read the response...if the response is "OK" it opens up with a main menu...........the problem is that i am recieving the response as "OK" but i am unable to compare it with a NSString @"OK"............so...

HTTP URL - allowed characters in parameter names

Is there any formal restriction as to which characters are allowed in URL parameter names? I've been reading RFC3986 ("Uniform Resource Identifier (URI): Generic Syntax") but came to no definitive conclusion. I know there are practical limitations, but would it actually be forbidden to do something like: param with\funny<chars>=some_v...

What Steps do you Take to Troubleshoot Problems with PHP cURL?

Almost any working PHP programmer has faced having to use CURL to send raw HTTP requests, whether it's for credit card payment processing, nefarious screen scraping, or something in-between. Almost any forum where PHP programmers congregate has a large number of people who can't get the cURL functions to do what they want. When cURL is...

Which encoding is used by the HTTP protocol?

When a browser sends an HTTP request to a web server, what encoding is used to encode the HTTP protocol on the wire? Is it ASCII? UTF8? or UTF16? Or does it specify which encoding it uses in a predefined format (before any decoding takes place?) P.S I'm not asking about the actual payload (e.g. HTML) of the request/response. I'm asking ...

How to send an HTTP header in java

Hi, Is it possible to send a Http header via a URL connection in java? I had this working using sockets, but ran into issues with a firewall which don't seem to be a problem with URLConnection. From looking at the API I get the impression that the output methods in URLConnection are just for filling in forms etc, or can they be used to s...

How to specify an external website for XMLHTTPRequest

When using an XMLHTTPRequest in javascript, I want to send it to an external website, rather than the one where the .js file is hosted. To send it to test.php on the current server, I would use request.open("POST", "test.php", true); but for the second arguemnt, how do I send it to another website. "example.com/test.php" looks for a f...

What does the utmscr or utmcct values mean in reference to the Http cookie Server variable?

What does the utmscr and/or utmcct values mean in reference to the Http cookie Server variable? Are they acronyms or short for something? We are getting Elmah errors with the title "System.Web.HttpException: Unable to validate data." In each Elmah error message, the Http Cookie server variable value contains a property called utmscr s...

Why is curl sending the command-line before the message body in an HTTP PUT?

I'm issuing the command (line broken for readability): curl -H"X-RequestIsAbsolutePath: F" \ -T /tmp/out \ -H'Content-Type: application/xml' \ "http://localhost:8182/metadata/036-Rotated.JPG" I'm sending a message body of XML. I get a complaint from the XML parser on the server about content not being allowed in the prolog. I added ...

What C++ library should I use to implement a HTTP client?

I'm looking for a C++ library that implements or enables the implementation of a HTTP client. It should handle cookies as well. What would you propose? Thank you in advance for your time. ...

How to download a file with WinHTTP in C/C++ ?

I know how to download an html/txt page. For example : //Variables DWORD dwSize = 0; DWORD dwDownloaded = 0; LPSTR pszOutBuffer; vector <string> vFileContent; BOOL bResults = FALSE; HINTERNET hSession = NULL, hConnect = NULL, hRequest = NULL; // Use WinHttpOpen to obtain a session handle. hSession = WinHttpOp...

Difference between specifying IP in host file vs using IP directly

Is there any difference between the following when a intranet URL in accessed in IE Add an entry in drivers/etc/host file for a name and IP vs Use IP directly e.g. it works with the following link if I have a host entry as (XYZ 10.0.10.200) http://XYZ/SiteDirectory/ABC/Default.aspx but when I tried to use IP instead of name http://1...