http

Is http POSTing a file across a network much less efficient than copying?

We're developing a windows service which will act as a sort of 'slave' process. This process basically downloads a pdf, splits it into several pdfs then needs to send that pdf back. We're currently using a http request to retrieve the pdf and a number of POSTs to send the files back. This is so the slave service can be run from pretty m...

TCP client server conversation in endless loop??

I'm trying to access a web server which is sitting behind a Netcomm 3G10WVR modem/router. The web server's port 80 is port forwarded to port 4476 on the router. The tcp conversation seems to proceed ok but then gets into a (seemingly) neverending loop. I exported the conversation from wireshark and deleted the irrelevant lines - the rema...

Visual Basic 2010 HTTP POST Request

How can I send a POST HTTP request to a server (in Visual Basic 2010) and then receive the reply into a string. ...

Is there a way to get the original HTTP response string from a WebException?

I have a web app which talks to a custom back-end server over HTTP. The server provides its responses in XML and I use Linq-to-XML to parse the results. If the server cannot process a query it will send back a 400 bad request header which includes detailed information about the problem. i.e. HTTP/1.1 400 Bad Request (invalid query)...

How can I get the current contentURL when MPMoviePlayerViewController playing a XXX.m3u8 file??

Hey,every humen. When i use .m3u8 file for playing,how can I get the current contentURL when MPMoviePlayerViewController playing a XXX.m3u8 file?? The .m3u8 file‘s content is: EXTM3U EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=9600 http://XXXXX/test03-1/test03-1.stream/playlist.m3u8 EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=5120 http:/...

How can i get the http request when MPMoviePlayerController just playing a http URL??

Hi,every one. How can i get the http request when MPMoviePlayerController just playing a http URL?? Thank you very much... ...

Get HTTP headers in asynchronous WebClient request.

I'm using System.Net.WebClient to perform some HTTP operations in asynchronous mode. The reason to use asynchronous operations is, above anything else, the fact that I get progress change indications - which is only available for async operations, as stated by the docs. So let's say I have my WebClient set up: this.client = new WebClie...

Downloading a Cab file using WebClient gives too few bytes

I need to download a Cab file from a Url into a stream. using (WebClient client = new WebClient()) { client.Credentials = CredentialCache.DefaultCredentials; byte[] fileContents = client.DownloadData("http://localhost/sites/hfsc/FormServerTemplates/HfscInspectionForm.xsn"); using (MemoryStream ms = new MemoryStream(fileConte...

Handler to add HTTP headers to HTTP request not invoked when using Axis Client API

I am using the Axis API to access Axis HTTP server. The documentation of the API can be found here. I am using the following code to add handlers to the server. service is of type java.xml.rpc.Service HandlerRegistry registry = service.getHandlerRegistry(); QName serviceName = new QName(url, "MyServiceClass"); List<Handler...

Finding out is user fully completed download or not

I have an webapp which dynamically generates a file and stores it on the server. When a user comes along, this file is served, after which it gets deleted. Each user gets their own generated file after which it becomes useless. Is there a way to know if the user managed to download the file fully, so that it may be deleted and not clo...

Accepting a HTTP Post request in Azure

Hi If in Azure I wanted to write an application that accepted an XML file via HTTP Post, should I use WCF or just create a asp.net (web role) to accept the input? Thanks Steve ...

500 Error when sending file from python to django

I've found a nice python module for sending data to remote servers via HTTP POST called poster. So I've wrote a simple view on my django app to receive and store data and then tried to send some file. Unfortunatelly even though I've set everything as it was shown in the instruction I'm getting Internal Server Error. Can anyone maybe see ...

Url fragment and Referer header

Imagine you are on a page whose URL has a fragment (the part after the #), and click a link to go to another page. Most browsers will send the URL of the original page to the server in the Referer header. What I want to know is whether or not the URL fragment will be included in this or not. I have seen various behaviors in the wild so...

Is this a mal-formed http request from an iPad, which kills Node.js multipart parser

The below code is used in an iPad app to send an HTTP request to a Node.js web server, which produces the following error, but works fine w/ a regular HTML+browser form. The server is Node.js + formidable which has a multipart parser that only dies on this line of code with this error: message: parser error, 0 of 29162 bytes pars...

HTTP monitoring for PHP file_get_contents

Is there any tools like httpwatch/fiddler available to monitor the headers send by PHP API like file_get_contents ...

Handling HTTP ContentEncoding "deflate"

What InputStream type should be used to handle URLConnection streams that have HTTP Content-Encoding set to deflate? For a Content-Encoding of gzip or zip I use a GZIPInputStream, no problem. For a Content-Encoding of "deflate" I have tried using InflaterInputStream and DeflaterInputStream but I get java.util.zip.ZipException: unk...

Spring security- switching between HTTPS and HTTP

Hello, I am working on a spring based application which will be delivered to several clients. I would like to find a way to override the securiy settings defined in web.xml either at runtime (to switch between HTPP and HTTPS), either to load another web.xml without unpacking and editing the web.xml from the application jar. Thanks fo...

How embeded http server in own plugin on Eclipse?

I need an embedded http server. Which can be controlled by pressing the button (Start, Stop) in the plugin. I looked at the jetty, but don't understand how to use it. ...

How to set up Subversion over HTTP

I'm relatively new to Subversion. I'm familiar with the basic concepts and have used simple checkout/update/commit commands, but nothing more. I am starting a new project and would like to use Subversion. I work from a lot of different computers, so having a local svn repo doesn't make much sense. I do have access to a server. I do not ...

URLConnection does not get the charset

I'm using URL.openConnection() to download something from a server. The server says Content-Type: text/plain; charset=utf-8 But connection.getContentEncoding() returns null. What up? ...