I was having a problem where HttpURLConnection.getOutputStream() took 2-3 seconds. I set the connect timeout using HttpURLConnection.setConnectTimeout, expecting a SocketTimeoutException (wrapped by IOException) to be thrown from getOutputStream(), so I could retry the whole operation on another server.
Instead, it just works now. Does ...
If I do this...
conn = new URL(urlString).openConnection();
System.out.println("Proxy? " + conn.usingProxy());
it prints
Proxy? false
The problem is, I am behind a proxy. Where does the JVM get its proxy information from on Windows? How do I set this up? All my other apps seem perfectly happy with my proxy.
...
The core question is about the use of the HTTP Headers, including Range, If-Range, Accept-Ranges and a user defined range specifier.
Here is a manufactured example to help illustrate my question. Assume I have a Web 2.0 style application that displays some sort of human readable documents. These documents are editorially broken up int...
For several years, I've been facing problems with HTTP 1.1 pipelining & continued to ask the server to send the HTTP Header:
Connection: close
I want to revisit this decision. Does your native mobile apps use HTTP pipelining ?
Some problems with HTTP pipelining I've faced:
Server not releasing TCP connections
My client is receiving ...
I first configure my script to run even after the HTTP request is over
ignore_user_abort(true);
then flush out some text.
echo "Thats all folks!";
flush();
Now how can I trick the browser into thinking the HTTP request is over? so I can continue doing my own work without the browser showing "page loading".
header(??) // someth...
Hi.
Does any of you know a good HTTP / HTTPS packet sniffer for Windows?
I need it for debugging a webapp
I prefer open source (.NET),
but shareware or paid products are also of interest.
/Thanks
...
Hi everyone,
I'm new to Flex and couldn't figure out yet how to send binary data to the server as the body of a POST request. The HTTPService component doesn't seem to support this. The FileReference doesn't seem to support setting the data via the Flex API.
Unfortunately the answers to similar questions on stackoverflow.com haven't be...
I have a web site server which do such work like this:
The server receives request from user A(request referer is blank) and then redirect(at server side) user A to visiting web site B;
Is there any way I could modify user A's request referer to my domain name, then site B can get my domain name from user A's request?
Thanks in advanc...
We have a Flash application that connects to a WCF REST web service returning json data.
We use URLRequest/URLLoader with POST requests, not a lower-level library using sockets like as3httpclientlib.
The application runs swimmingly well in the normal course of duties, but when we are behind a corporate proxy server (ie. In Internet Exp...
I am trying to send a file to torrage.com from an app in GAE.
the file is stored in memory after being received from a user upload.
I would like to be able to post this file using the API available here:
http://torrage.com/automation.php but i am having some problems undestanding how the body of the post should be encoded, the most i go...
What search do when they found different status code?
302
301
404
etc...
I knew they would ignore the pages with 404 status code but what about the other statuses
do search engines crawl the source or destination page?
...
Hello
How to get the destination URL using cURL? when the http status code is 302?
<?PHP
$url = "http://www.ecs.soton.ac.uk/news/";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$html = curl_exec($ch);
$status_code = curl_getinfo($ch,...
Hey I was wandering if you could help me with this. I have a website and I put the expire headers on all pages/img’s and scripts but I don’t kno how I could add expire headers to scripts not on my page. For example Google Analytics it has expire headers set to 1 day. But not Google is my problem. Some other adds from a website are the re...
I want to hack my browser to redirect from one website to another when I type in a URL.
For example:
When I type "facebook.com" into my Firefox address bar, I want it to redirect to "lite.facebook.com"
Are there configuration files in Firefox that allow me to do this? Almost like a local mod_rewrite?
...
I'm trying to write a Greasemonkey script that will convert all "Play" links on a page to embedded audio (using the <embed> tag).
When I use a link that I get from a GMail attachment, it works like a charm.
When I use a link from another site (Digium Switchvox), the HTTP response header has ContentType set to "application/octet-stream"...
Hello,
I am using PHP to parse the numeric portion of the HTTP status code response. Given a standard "HTTP/1.1 200 OK" response, I'd use:
$data = explode(' ', "HTTP/1.1 200 OK");
$code = $data[1];
I'm not an expert on HTTP. Would I ever encounter a response where the code is not at the position of $data[1] as in the above example?...
I have a client-server system, where the client needs to fork a child, and return its pid back to the server. After this, it has to keep the connection to the server alive, through which it keeps sending the server log information about the child and other requests that it might want to send as part of debugging information.
My question...
Is there an equivalent for the python libgmail in “C”?
Edit:
I am trying to achieve the equivalent of GmailFS in C.
Appreciate if you can point me to an open source library. This is for a hobby project.
...
We have to read data from a aspx page. When we call the page with a query string, it returns an xml document with data that matches the query string.
We have an XSD that matches the xml that we get back.
I am thinking that we can read the xml document out of the http response. Will this work?
How can we "bind" the XML with the XSD, su...
I'm trying to use a CGI script to accept and save a file from a program that is using an HTTP POST to send a zip file.
In the MIME section of the HTTP header it looks something like this:
Content-Disposition: form-data; name="el_upload_file_0"; filename="BugReport.zip";\r\n
Content-Type: application/octet-stream\r\n\r\n
In my CGI cod...