http

What's the fastest way to test the validity of a large number of well-formed URLs

My project requires me to validate a large number of web URLs. These URLs have been captured by a very unreliable process which I do not control. All of the URLs have already been regexp validated and are known to be well-formed. I also know that they all have valid TLDs I want to be able to filter these URLs quickly in order to determi...

Can someone give me an example of a Unmanaged C++ HTML Client with proxy support?

Can someone give me an example of a Unmanaged C++ HTML Client with proxy support? I want to do some get and posts inside my unmanaged c++ programs, ideally I would like to allow for proxy server configuration, or just use the IE defaults. I am not looking for hand outs, just something to go by, as I can't seem to find too much on this....

What two separator characters would work in a URL anchor?

I use anchors in my URLs, allowing people to bookmark 'active pages' in a web application. I used anchors because they fit easily within the GWT history mechanism. My existing implementation encodes navigation and data information into the anchor, separated by the '-' character. I.e. creating anchors like #location-location-key-value-k...

Windows tool for sending complete http body ( including headers ) to server

I was wondering if anyone knew of a tool where I could send a fully formed HTTP body ( headers & content ) to a web server. So far the best I've got is putty but was hoping for something where I could look @ and edit the payload then click a button and send it. ( I could probably write something like this in a couple minutes but was ho...

Can Rails / Mongrel accept a form POST with a text field whos value is a URL

In my Rails app I am attempting to create a form that allows users to create a bookmark. <% form_tag( contents_path ) do %> <input name='item_type' value="Bookmark" type="hidden" /></p> <h3>Create New Bookmark</h3> <p>Title:<input name='item[title]' type="text" /></p> <p>URL:<input name='item[url]' type="text" /></p> <%= submi...

What kind of method to use for communications when planning multilayer flash server

Hello all im planning to build flash multilayer server ( in c++ or java ) im not coming from the flash area . But from what im reading flash does support sockets , BUT this is not my case i need to be able to support browser flash games so it leaves me with port 80 with http .but how can i implement good communication architecture wit...

Which browsers claim to support HTTP compression but are actually flaky?

Are there any known issues with older/buggy browsers that claim to support gzip/deflate compression but don't handle it very well? I'm obviously only turning it on for browsers that claim to support it, but for the best user experience, I want to know if there are any browsers I should blacklist. For some reason, I remember hearing p...

ASP.NET Post Application_Error Event

I'm trying to find an event that will fire immediately after all Application_Error event handlers so that I can modify the response sent (messing with the status code and 'location' headers and creating a new body specifically) using a custom HttpModule. I've tried hooking into Application_EndRequest (as I've read that this is the only ...

What is the current state of the Cookie2 specification?

Do you have some information regarding browsers that implement/plan to implement this part of the HTTP 1.1 specification? Additionally, what frameworks have already implemented this feature. I've done my Google research but I'd like to know if there's something else. Also, do/would you use it? Do you find it better than the Cookie/Set-C...

ISAPI rewrite question on IIS

I have the following rules: RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteRule ^blog/?$ http://blog.example.com/ [P] RewriteRule ^(blog/.*)$ http://blog.example.com/$1 [p] RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule ^(.*)?$ http://www.example.com/$1 [L,R=301] What I'm trying to achieve, and it works up ...

WSGI byte ranges serving

I'm looking into supporting HTTP/1.1 Byte serving in WSGI server/application for: resuming partial downloads multi-part downloads better streaming WSGI PEP 333 mentions that WSGI server may implement handling of byte serving (from RFC 2616 section 14.35.2 defines Accept-Range/Range/Content-Range response/request/response headers) and...

HTTP Request, loading javascript DOM manipulations that have been made to the HTML

I'm currently using cURL to do HTTP requests, and it works fine. However I need to get the javascript code and execute it in the context of the HTML, making it manipulate the DOM exactly as if it were a web-browser. The first thing that came to mind was to use firefox, there's a command-line interface so I thought it would be easy (mayb...

How do I "log in" to a web app and access subsequent pages using Java?

I want to write a Java program that'll access a few web pages that requires logging in. How would I keep the session cookie resulting from logging in so I can access those pages? ...

Best way to upload multiple files from a browser

Hi all, I'm working on web application. There is one place where the user can upload files with the HTTP protol. There is a choice between the classic html file upload control and a java applet to upload the files. The classic html file upload isn't great because you can only select one file at a time, and it's quite hard to get any ...

Redirecting URLs (with specific GET parameters)

I have this old survey link that is has been superseded by another link, so basically I want anyone trying to access the URL: http://mywebsite.com/survey/view_survey.php?surveyID=1 To be redirected to: http://mywebsite.com/survey/view_survey.php?surveyID=2 Can I do this in the Apache configuration or htaccess file? I tried the foll...

Short way to link to http from https (and vice versa) using relative links

When I´m in a secure part of a web-site I´m developing (entering a specific page or folder using https), the relative links to the normal pages are automatically converted to https as well. Is there a way to tell an <a> tag to always use the http protocol instead of the https protocol (or the other way around)? I know it´s easy using t...

HTTP Connection Pooling in GlassFish

In my webservice, I need to place some HTTP calls. Is it possible to do some connection pooling, like I do JDBC connection pooling? In the Admin Console of GlassFish I see the configuration items Connector Connection Pool and Connector Resources. Can I use these? ...

Ruby: How to make an HTTP GET with modified headers

What is the best manner to make an HTTP GET request in Ruby with modified headers? I am attempting to get a range of bytes from the end of a log file and have been toying with the following code, but the server is throwing back a response noting that "it is a request that the server could not understand" (the server is Apache) require ...

Why won't haproxy capture my cookie?

I'm having trouble getting frontend cookie capture to work in haproxy. I have this in my config: frontend frontend 0.0.0.0:9999 [snip] capture cookie foo len 10 Then I use nc to talk directly to the server and send it: GET / HTTP/1.1 Cookie: foo=bar I get a log line, but there's a "-" where the captured cookie should be. ...

Android InputStream Internet Disconnect

Hello, In my Android program, I have some code that downloads a file. This works fine, but since on a cell phone, you can be disconnected at any time, I need to change it do it reconnects and resumes the download when you are halfway through and somebody calls/you lose cell reception/etc. I cannot figure out how to detect the InputStream...