I would like to do the following in php :
setcookie('name', $value, $Cookie_Expiration,'/');
then some action
header("location:http://www.example.com")
the problem is that I get :
warning: Cannot modify header information - headers already sent by (...etc )
could you please let me know what i am doing wrong and if there is a way t...
Hi,
Sorry, I'm quite new to Java.
I've stumbled across HttpGet and HttpPost which seem to be perfect for my needs, but a little long winded. I have written a rather bad wrapper class, but does anyone know of where to get a better one?
Ideally, I'd be able to do
String response = fetchContent("http://url/", postdata);
where postdata...
I use Fiddler for intercepting HTTP traffic when using IE or Firefox. Now that I'm using chrome for most of my day, I would like to be able to see the http traffic using something like Fiddler. What do chrome developers use ? I prefer something automatic like Fiddler but something that needs config, etc would also help.
P.S : I'm on win...
Note: The original was worded in quite a confusing manner. I tried to rewrite it while maintaining the original intent. -George
I need to send a request using GET/POST method to a server and check its response. I need some code in C/C++ to check whether my request was successful or not.
...
Today's browsers (or HTML < 5) only support HTTP GET and POST, but to communicate RESTful one need PUT and DELETE too. If the workaround should not be to use Ajax, something like a hidden form field is required to overwrite the actual HTTP method.
Rails uses the following trick:
<input name="_method" type="hidden" value="put" />
Is t...
Hi all,
I am seeking to (legitimately) plant bugging in my web pages to collect and report information about website performance.
Preference for internally hosted. While I expect that there are commercial offerings out there (e.g. Google Analytics) I'm keen to find something we can run entirely in-house (its not a public website and m...
I have a RESTful API set up and working with CakePHP using mapResources() and parseExtensions(). Authentication is handled by CakePHP's security component using HTTP Digest Authentication.
Everything works fine, unless I add parameters to the url, in the form:
http://example.com/locations.xml?distance=4
Which causes the authenticatio...
I am consuming various XML-over-HTTP web services returning large XML files (> 2MB). What would be the fastest ruby http library to reduce the 'downloading' time?
Required features:
both GET and POST requests
gzip/deflate downloads (Accept-Encoding: deflate, gzip) - very important
I am thinking between:
open-uri
Net::HTTP
curb
b...
What is the best way to manage cached articles when it comes to
keeping the read state/unread state in sync? Is there a property
inside the article feed that will tell me the state of the item? I'm
trying to figure out how to keep the read state in sync, and if I need
to do a comparison of every cached article to the one on Google ...
Hi,
I am looking for a Windows graphical utility for performing HTTP operations.
For example, I want to be able to say things like:
POST to http://example.org/test/service
With a POST body: "Data goes here"
Does anyone know a good piece of software for doing this?
...
I just want my connection to use this apn, i.e. I don't want to set the global apn.
...
I'm writing a kind of HTTP proxy, so I need to be able to do 3 things:
Parse an HTTP-date given any of the 3 formats specified in RFC 2616, sec 3.3,
Convert a file date-time to an HTTP-date string, and
Output the date to a string.
For reference, theses are examples of the date-times I need to parse. I will output only the first form...
If I'm right, each request for http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.js
uses something like 3kb of microsoft.com cookies. Do I not understand something and it doesn't matter or is Microsoft wrong?
...
Hi,
I changed the way my URL are working on my server.
It is now www.myserver.com/service instead of www.myserver.com/test/service
I have added a RedirectMatch 301 to my Apache conf file to redirect any access to www.myserver.com/test to www.myserver.com/.
I am receiving file to this server via an HTTP PUT at this URL for example :
ww...
When a user is not logged in and tries to access an page that requires login, what is the correct HTTP status code for a redirect to the login page?
I don't feel that any of the 3xx fit that description.
10.3.1 300 Multiple Choices
The requested resource corresponds to
any one of a set of representations,
each with its own ...
I need to test if my 304 responses are working, but my development environment is pretty hard set on force no-cache.
Is there an easy way to modify the max-age value of the cache-control header before it goes out?
I'm perhaps a bit optimistic in hoping chrome (or an extension, or FF) has a console command letting me alter the if-modi...
As per title. And is there anyway to cache such data?
thanks
...
When making a request using HttpWebRequest object, I need to call the method GetResponse() to send the request and get the response back.
The problem with this method is that it doesn't return the response object until all data has been received. Say I am downloading a 100 MB file, I won't be able to read it until the response finish and...
I'm not familiar with http stuff, but how would I be able to submit data to a website? There is a submit button that I would like to "press" from a console app. This is not my own website.
This is part of the page source, not sure if it has any relevance:
<form action="rate.php" method="post">
I looked at the HttpWebRequest class but...
What is the best and simplest http user agent in .NET?
I simply want to put in the url have it return the page as a string.
...