Really confused - Guess it has to do with a single character placement at the end, or possible padding done with basic digest that I'm not aware of..?
So, if I execute this, you can see the product of the base64 encode:
echo '[email protected]:password' | openssl enc -base64
aG9zdEBtYWlsLmNvbTpwYXNzd29yZAo=
Now, if I make a curl request:...
I have problem with Indy IdHttp Post method.
Function CallRpc() compiled with Delphi 2007 works fine but same code compiled with Delphi 2010 raises exception.
What do I have to consider when I change Delphi 2007 Indy TIdHttp to Delphi 2010 Indy TIdHttp?
function CallRpc(const sURL, sXML: string): string;
var
SendStream : TStream;
...
I am making an application that asks the user for userid, appends the userid to a static HTTP link to retrieve the user's daily schedule info file that has a .ical (calendar) extension.
I need to read the data from file, format in new UI and representing some useful data on an Android device.
My query is can I access a static HTTP link...
Hi, I'm new to Perl but need to use it on a project I'm working on. What I need to do is check to see if a URL has a 301 redirect and if it has, get the location. The following told me the code but not the location:
use strict;
use warnings;
require LWP::UserAgent;
my $ua = LWP::UserAgent->new;
$ua->timeout(10);
$ua->env_proxy;
$ua->ma...
There seem to be two distinct ways to implement conditional requests using HTTP headers, both of which can be used for caching, range requests, concurrency control etc...:
If-Unmodified-Since and If-Modified-Since, where the client sends a timestamp of the resource.
If-Modified and If-None-Modified, where the client sends an ETag repre...
I cannot seem to get a definitive answer on the following question (Googling mostly and reading HTTP/1.1 specs):
When 'chunked' transfer encoding is used, why does the server need to write out BOTH the chunk size in bytes and have the subsequent chunk data end with CRLF. Doesn't this make sending binary data "CRLF-unclean" and the metho...
I'm new to Ruby coming from Java. I'm trying to make a http get request and I'm getting an http response code of 400. The service I'm calling over http is very particular and I'm pretty sure that my request isn't exactly correct. It'd be helpful to "look inside" the req object after I do the head request (below) to double check that the ...
I want to post data to another server (JSP or ColdFusion).
Note: Post which means the data is required at the another server also the browser should be redirected automatically.
Is it better to use
form tag...input type hidden fields, values
...
and from javascript
form.submit();
or
HttpWebRequest myRequest =
(HttpWebReque...
The question can be seen as both practical and theoretical.
I am designing a system involving a HTTP client (Flash Player application) and an HTTP server "backend". There are registered users each with their own private image library. Images can be uploaded and of course subsequently retrieved.
Since users authenticate with cookies car...
Hi everybody,
I am analyzing Pcap captures with C and I need to uncompress the Gzipped body of the HTTP
replies.
I know that I can do that using Wireshark manually, but I would need to do it on the fly, inside my program.
My understanding is that I should look into zlib and the RFC. But since it's a little analysis program, do you know...
I would appreciate an example on how to perform an async HTTP POST request using Python's GIO binding.
Edit: Example sought without using Twisted.
...
I'm trying to set a session cookie restricted to a particular path (let's say /foo) when a user logs in. The complication being that the login page is on /, but the request immediately redirects to /foo/something. Something like this:
Request:
POST / HTTP/1.1
username=foo&password=bar
Response:
HTTP/1.0 302 Found
Location: http://e...
I have a desktop client application that is talking to a server application through a REST API using simple HTTP posts. I currently have the client polling every X minutes, but I would like the data to be refreshed more frequently. Is it possible to have the server notify the client of any new data, or is that outside the scope of what a...
I'm making a python URL grabber program. For my purposes, I want it to time out really really fast, so I'm doing
urllib2.urlopen("http://.../", timeout=2)
Of course it times out correctly as it should. However, it doesn't bother to close the connection to the server, so the server thinks the client is still connected. How can I ask url...
Hi all,
I was wondering if any of you know how to 'log-off' basic authentication (BA) using the java.net.Authenticator class. I know that BA doesn't have a log-off method, and that you have to close and reopen the browser to end the session. Question is, how do you 'close and reopen the browser' within java code? That is, I'm connecting...
I created a simple JMeter Http test.
I specified 50 users, each users will do do 30 http requests (one after the other), and the user's ramp up time is 1 second.
Then I added a Graph Result Listener, then recorded the performance of my application for 10minutes.
Question : What is Graph Results Listener measuring - per http request of...
I am not sure how this fits into Stack Overflow's moderation guidelines, but I did not at the time of writing http://stackoverflow.com/questions/2132716/can-an-url-really-be-considered-to-be-the-only-key-for-a-http-response have this particular case in mind, and so decided to continue with this one.
The old story: say one has a site whe...
Writing a Service that is running on IIS.
Basically looks like this:
void ProcessRequest(HttpContext context)
{
<Init Stuff>
<Access DB> // This may potentially stall for DB access
<Write Output to conext stream>
}
By stalling the thread in the <Access DB> section we are basically blocking one of the IIS service thre...
There are 4 common protocols for network access of SVN.
svn://repos
svn+ssh://repos
https://repos
http://repos
The wikipedia page doesn't say much about the differences of the 4 different protocols. I've always preferred svn:// because it is the easiest to setup, but what is the difference and which one is "better"? ...
Hello everyone,
For the specific needs of a project, I have to interface some of my code with other closed-source code.
My idea is to understand how the original application communicates and then mimic the behaviour. I have already done the first step, which is analysing some HTTP exchanges (done using POST request and XML replies) with...