http

Sharepoint stripping HTTP Headers

I have a custom sharepoint app whose security model depends on an HTTP header. When a request is made from the mobile device, an http header called HTTP_RIM_DEVICE_EMAIL is added to each request. I grab the http header via the following method: private static string GetValueFromHeader(string headerName) { HttpRequest...

How to analyse a HTTP dump?

I have a file that apparently contains some sort of dump of a keep-alive HTTP conversation, i.e. multiple GET requests and responses including headers, containing an HTML page and some images. However, there is some binary junk in between - maybe it's a dump on the TCP or even IP level (I'm not sure how to determine what it is). Basical...

Request Web Page in c# spoofing the Host

I need to create a request for a web page delivered to our web sites, but I need to be able to set the host header information too. I have tried this using HttpWebRequest, but the Header information is read only (Or at least the Host part of it is). I need to do this because we want to perform the initial request for a page before the ...

How do I retrieve a URL from a web site using Java?

I want to use HTTP GET and POST commands to retrieve URLs from a website and parse the HTML. How do I do this? ...

Persistent HTTP GET variables in PHP

Let's say I have some code like this if(isset($_GET['foo'])) //do something if(isset($_GET['bar'])) //do something else If a user is at example.com/?foo=abc and clicks on a link to set bar=xyz, I want to easily take them to example.com/?foo=abc&bar=xyz, rather than example.com/?bar=xyz. I can think of a few very messy ways to...

Best way to handle file uploads through HTTP

File uploads through web pages using the standard HTML input always seems clunky to me. If the user tries to upload a large file, it can go on forever and they get no queue that the file is actually being uploaded. I have tried to do things like provide a gif graphic that is an animated graphic bar, but it doesn't give the user any in...

Proper use of HTTP status codes in a "validation" server

Among the data my application sends to a third-party SOA server are complex XMLs. The server owner does provide the XML schemas (.xsd) and, since the server rejects invalid XMLs with a meaningless message, I need to validate them locally before sending. I could use a stand-alone XML schema validator but they are slow, mainly because of ...

Flex HTTPservice and POST, Sending Files ?

Hello, I use a basic Post to send data to a Django server. The data consists of a base64 encoded 640*380 PNG image dynamically created by the flex component. <mx:HTTPService id="formSend" showBusyCursor="true" useProxy="false" url="http://127.0.0.1/form/" method="POST" result="formSentConfirmation(event)" fault="formSendi...

Code is HttpClient or servlet API to parse Cookie header

Is there any existing code in Apache HttpClient or in the servlet API to parse Cookie header and obtain from a string that contains "name1=value1; name2=value2; ..." a list of Cookie? Writing code to parse this doesn't seem too hard, but if there is already some existing code, I'd like to use it. ...

Can an HTTP GET legally contain content?

Can an HTTP GET legally contain content? The idea would be to put the request fields in as URL encoded content instead of in the URL to leave the URL clean in a web application for which I am going to be refactoring the resources. I suspect it's not allowed, but the spec at W3C didn't seem to say. EDIT: A post is expected to semantica...

How to deal with long running Unit Tests?

I've got about 100 unit tests and with a coverage of %20, which I'm trying to increase the coverage and also this is a project in development so keep adding new tests. Currently running my tests after every build is not feasible they takes about 2 moments. Test Includes: File read from the test folders (data-driven style to simula...

IE7 HTTP Error 400

Why would IE 7 display HTTP Error "Bad request" 400 on the same page that Firefox loads without complaining? ...

HTTP file download with Javascript

Is there any way (in Javascript) to download a remote website (i.e. like with Curl), read it into a string variable and further process it? ...

IIS file download hangs/timeouts - sc-win32-status = 64

Any thoughts on why I might be getting tons of "hangs" when trying to download a file via HTTP, based on the following? Server is IIS 6 File being downloaded is a binary file, rather than a web page Several clients hang, including TrueUpdate and FlexNet web updating packages, as well as custom .NET app that just does basic HttpWebReque...

C#: How to read data from webbrowser in a windows application

Hi friends, First of all i am doing a Windows application. Not a web application. Now i am doing on application to send SMS (Short message) from System to Mobile. Here, i am using a http URL to push the message having parameters To (number) and Msg (test message). after forming the URL, like http://333.33.33.33:3333/csms/PushURL.cg...

How do you forward http request to a https url

Like the question says, if I have a request for a page on my site like this http://somename.something.here/Dada.aspx to something like this https://somename.something.here/Dada.aspx ...

why are escape characters (\) appearing in one field but not another

I've been building a db input form. There are three fields for notes. They were all build at the same time. They have the same logic & class system - but one of them is returning with escape marks when I update the record (e.g.) i enter 1 2 3 and the updated record returns 1\r\n2\r\n3 I'm confused as the other return the text as f...

Deploy ClickOnce application using HttpWebRequest

Hi, I'm trying to launch my ClickOnce application using C# code with HttpWebRequest class. The application can be deployed fine using IE. But when doing the deployment with my code, it seems only the .application file is downloaded to client. My code is as below. HttpWebRequest getRequest = (HttpWebRequest)WebRequest.Create("h...

Are there any tools for diffing HTTP requests/responses?

I am trying to debug some problems with very picking/complex webservices where some of the clients that are theoretically making the same requests are getting different results. A debugging proxy like Charles helps a lot but since the requests are complex (lots of headers, cookies, query strings, form data, etc) and the clients create t...

What requests do browsers' "F5" and "Ctrl + F5" refreshes generate?

Is there a standard for what actions F5 and Ctrl+F5 trigger in web browsers? I once did experiment in IE6 and Firefox 2.x. The "F5" refresh would trigger a HTTP request sent to the server with an "If-Modified-Since" header, while "Ctrl+F5" would not have such a header. In my understanding, F5 will try to utilize cached content as much a...