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....
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...
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...
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...
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...
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...
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.
...
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...
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.
...
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...
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);
...
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(...
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?
...
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..
...
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...
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...
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...
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...
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...
What is the best C library for sending HTTP requests and processing the responses?
...