What would the best practice approach and most desirable HTTP status code be for website / application pages that should not be displayed temporarily?
To outline possible alternatives -
Leave user at the current URL, but
return a different status code and
'maintenance' content? Possibly 503 code? SO question - http://stackoverflow.com...
I wish to share a link to a page however the contents for that page are only available from submitting a form.
Here's an example:
I want to see the list of retailers in California that sell gold bullion for the U.S. Mint. However I must submit the form to get the results:
http://www.usmint.gov/mint_programs/american_eagles/index.cfm...
Why use http(s)+comet and not simply socket programming+maybe use the same port 80 or 443 if firewall/blockage is an issue?
Wait, perhaps because browsers don't have javascript sockets API?
If I am building an independent application and not a web-app, does comet have any advantage over socket programming?
...
Hello. I have a page with gzip and in my php index file i have ob_start('ob_gzhandler');
[HTTP_ACCEPT_ENCODING] has value gzip,deflate and even that i receive in some refresh case that error about Encoding.
In htacces i added php_value zlib.output_compression Off and nothing. Any ideea how to fix that?
Thanks.
...
I am decoding http packets.
And I faced a problem that chunk problem.
When I get a http packet it has a header and body.
When transefer-encoding is chunked I don't know what to do ?
Is there a useful API or class for dechunk the data in JAVA ?
And if someone , experienced about http decoding , please show me a way how to do this ?
...
I have the following problem:
I have to write a PHP script that works as a client against another HTTP Server. This Server ignores the HTTP Connection:Close header and keeps the TCP connection open unless it is closed by the client. And here is my dilemma. I (the client) have to deciede when a HTTP request/response has finished and then...
There's a binary file on a remote server, that I wish to stream to my client.
I issue a GET request and the response is an HTTP header + body that has the binary file, in chunks.
The problem is, each chunk contains as well as the binary data, some metadata that I need.
How can I read just ONE chunk at a time from the HTTP stream with C...
I am new to Web services and .NET.
I have to authenticate a web service that is being accessed using http post.
I tried putting a custom soap header and sending it to the service and checking the header in service but the header object is always null in the service.
also if i put the user and password options in http headers how can ...
I'm tryng to download a web page in java with the following:
URL url = new URL("www.jksfljasdlfas.com");
FIle to = new File("/home/test/test.html");
Reader in = new InputStreamReader(url.openStream(), "UTF-8");
Writer out = new OutputStreamWriter(new FileOutputStream(to), "UTF-8");
int c;
while((c = in.read()) != -1){
out.write(c)...
Hi,
I am trying to send a SOAP request over HTTP for a web service through the following channels:
Telnet (HP-UX)
C client that opens a socket, writes XML and reads reasponse(HP-UX)
Perl client that does the same thing as the C client above(HP-UX)
Through SOAP UI application (http://www.soapui.org/)(Windows Machine)
While SOAP UI ge...
I would like to get a glimpse of web-sites created for iPhone devices. In order to be able to view those sites I have to modify the User-agent header in the HTTP request that my browser sends. That way I can trick the web-server into believing that my browser is an iPhone browser, and then the web-server would send my the iPhone version ...
Hi
Currently we access our repo via svn:\, but recently the need to access a restricted set of files via http:// has arisen.
We have certain raw html and txt files which we need to display directly from the repo using http://.
Our repo is hosted by the svnserve process on a windows server and ALL access is on an INTRANET so there's no ...
I have a piece of hardware with an embedded user control accessed by typing the device's IP Address into a web browser. The device is connected directly to my PC via x-over ethernet cable and static IP's. I need to integrate the control of the device into my C# application.
My thought was to use a packet sniffer to monitor the traffic ...
Hi Everyone,
I am trying to use urllib3 in simple thread to fetch several wiki pages.
The script will
Create 1 connection for every thread (I don't understand why) and Hang forever.
Any tip, advice or simple example of urllib3 and threading
import threadpool
from urllib3 import connection_from_url
HTTP_POOL = connection_from_url(url...
I have been investigating this for some time, but I haven't found anything to satisfy my curiosity. Is it possible, as a user, to be the victim of a CSRF attack if cookies are disabled. Obviously CSRF depends on the users browser to send the user's credentials with the forged request to the legitimate server. Besides IP addresses, bro...
Is there a way to create a very basic HTTP server (supporting only GET/POST) in Java using just the Java SE API, without writing code to manually parse HTTP requests and manually format HTTP responses? The Java SE API nicely encapsulates the HTTP client functionality in HttpURLConnection, but is there an analog for HTTP server functional...
input from telnet
GET /learn/tutorials/351079-weekend-project-secure-your-system-with-port-knocking?name=MyName&married=not+single&male=yes HTTP/1.1
Host: merch1.localhost
User-Agent: Mozilla/5.0 (Windows;en-GB; rv:1.8.0.11) Gecko/20070312 Firefox/1.5.0.11
Accept: text/xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Lang...
Hi!
I've got a question related to the Android MediaPlayer. Can it stream content through HTTP POST method , or do I have to write my own implementation? If so, what SDK do I have to use?
Thanks in advance.
...
Suppose an unauthenticated user tries to get the page which only authorized users can see: /profile/preferences
Is it a normal practice to reply to this with 401 Unauthorized along with the content of the login page or is it better to serve 302 Found redirect to the login page and then send the user back to /profile/preferences?
What a...
Is it possible that CherryPy, in its default configuration, is caching the responses to one or more of my request handlers? And, if so, how do I turn that off?
...