http

How can I access Closure JavaScript minifier using Perl's LWP::UserAgent?

Hi. I'm trying to get Code Closure to work, but unfortunately, there's always an error thrown. Here's the code: use LWP::UserAgent; use HTTP::Request::Common; use HTTP::Response; my $name = 'test.js'; my $agent = new LWP::UserAgent(); $agent->agent("curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1....

Will firewalls block my non-HTTP network protocol even if I use TCP port 80?

I want to create a simple JSON-based protocol to allow my game to talk to my custom server, but I don't want embed it in HTTP. If I send a custom text-based protocol request to my server on port 80, will firewalls block it for not using HTTP format, or do they only care about the port number? I won't use the same server as a web server...

Why would you ever use $_GET in PHP?

I haven't officially started learning PHP just skimming through a couple tutorials and I have a question. Why would some one choose to use Get vs Post? Why would you ever want the data shown in the url bar? I understand post is used for passwords and important info but I don't understand why you would use get instead of just post all the...

Semicolon as URL query separator

Although it is strongly recommended (W3C source, via Wikipedia) for web servers to support semicolon as a separator of URL query items (in addition to ampersand), it does not seem to be generally followed. For example, compare         http://www.google.com/search?q=nemo&oe=utf-8         http://www.google.com/search?q=nemo;oe=utf...

Android Multipart HTTP Post does not send the File's MIME type

Hi everyone, Trying to figure what's wrong with my codings. I followed a blog post from here. I managed to get the codes to actually upload the file to a PHP web service. However, for some reason although I've set explicitly the MIME type for the file, PHP shows that the MIME is just a blank string and therefore rejected. Here's my co...

How can I send data to a user that will persist between web page views, but which won't be resent to the server?

I want to send some data to a user after they log in to a web site, some kind of secret string for encryption. I want to allow them to navigate around the web site, and I want to be able to use javascript on their machine to encrypt data before it's sent back to the server. Note: This will be in addition to using SSL. I don't want to u...

HttpConnection package

I want to download the httpConnection class from apache but I cant find a link, also need to know how to import it and where to put the class files when i have them. ...

file_get_contents() with context to use http/1.1 significantly slow download speeds

Using the code below each image download) file_get_contents() ) takes on average 8-15 seconds..... If I do not use a context on file_get_contents() then image download is less than a second. If I change the $opts to, below then i get same performance as file_get_contents() without a context which takes appox 13 seconds to process 2,5...

How can I make an http request without getting back an http response in Python?

I want to send it and forget it. The http rest service call I'm making takes a few seconds to respond. The goal is to avoid waiting those few seconds before more code can execute. I'd rather not use python threads I'll use twisted async calls if I must and ignore the response. ...

Javascript issue with http://mysite.com vs http://www.mysite.com

Hello, I've never experienced this problem before, and it just came to our attention because a client was trying to access our page and couldn't see much of the javascript. He was navigating to http://www.mysite.com, when we've always just gone to http://mysite.com. There appear to be no problems server-side, as in both url's are poin...

Problem displaying request headers with apache httpclient 4

I've been trying to retrieve the headers sent by a HttpMethod, using HttpClient 4, but without any success... here is my code : HttpClient httpClient = new DefaultHttpClient(); HttpParams httpParams = httpClient.getParams(); HttpGet httpGet = new HttpGet("http://www.google.fr"); HttpResponse response = httpClient.execute(httpGet); ...

PHP: HTTP Basic - Log off.

I would to set it up where if someone sends in a request "logout" it will automatically take them to a page saying "successful log out". If the customer tries to press the back button or go to the restricted area, it will ask for HTTP auth again. What I have so far is this: example.com/restricted/index.php: <?php session_start(...

get http response codes with python

I know how to do this with httplib, but I need to also set the user-agent and I'm sure you need urllib to do that. How can I get the http response codes with urllib? ...

Remote connection between a website and local computer.

Is there any way I can connect to a local computer from internet website.. My requirement is to develop an Asp.Net web application which need to communicate with a local database.. ...

.NET Web Services - managing web requests

Hello I have a .NET WeBService project and a reference to it from another project. Visual Studio generates a proxy class (SoapHttpClient) with all methods of my Web Service. The project that I use the WebService from is a .NET CF mobile application. This means that Internet access and WebService is not always available. What I need to d...

Secure online-game http get/post request (How to avoid repeated sending of the same http-req)

In my game/app (iPhone) the client side sends http requests (get or post) to the game http server. Requests have this form: gameserver.com/userId/givebonus/100 This for example would give the userId a bonus of 100. Now, we encrypt the server request and it will become something like: gameserver.com/42c34c234c234/ghjghjg4hj32g42jh2/42...

best method for large File transfer via http(s) using PHP (POST) invoked via shell

I want to setup a automated backup via PHP, that using http/s I can "POST" a zip file request to another server and send over a large .zip file , basically, I want to backup an entire site (and its database) and have a cron peridocally transmit the file over via a http/s. somethiling like wget http://www.thissite.com/cron_backup.php?d...

Silverlight HTTP POST few variables, SIMPLEST example (least code)

Hello I want to post some data from silverlight to a website. I found the following link and it works... However.... This example was so elaborate it made my eyes hurt. Also.. the flex example was much cleaner/less code.. I'd say there must be a better solution... For reference.. We post 2 variables (strings) and read out the result (s...

How to handle IHttpSecurity::OnSecurityProblem having a IWebBrowser2 object

Hello, I can't seem to understand how i give my implementation of the IHttpSecurity::OnSecurityProblem to my IWebBrowser2 object. I know that i need to implement a class something like this: class CServiceProvider : public IServiceProvider { public: CServiceProvider(); ~CServiceProvider(); // IUnknown ULONG STDMETHODCALLTYPE...

C: Handling HTTP requests and responses

What is the best C library for sending HTTP requests and processing the responses? ...