I am adding headers to a page as follows:
Page.Response.AddHeader("foo", "bar");
Depending upon previous processing, sometimes this fails with "Server cannot append header after HTTP headers have been sent." I am dealing with this by enclosing Page.Response.AddHeader("foo", "bar"); within a try-catch construct. However, to keep things...
Dear Experts,
I have corrected my httpd config file after that I could able succeed the LDAP authentication
Now I am trying to checkout the files
using the following code
SvnClient client = new SvnClient();
SvnCheckOutArgs coArgs = new SvnCheckOutArgs();
bool isCheckedOut = client.CheckOut("http://100.21.45.12:8999/SVN/myrepo/SDT", wo...
hey there!
The brand-new WCF-based code needs (in the meanwhile) to provide a service to a legacy code that works in plain HTTP. So that, along with new SOAPed requests, I need to tailor some oldskul-style communication (on a different port): to be able to receive plain HTTP, analyse the request body and send the plain HTTP with some bo...
For our api user we need two styles of authentication:
authenticate the api-user (mobile-device, partner integration)
authenticate a specific "normal" user, which owns data on our side
The standard challenge vs. response is handled through WWW-Authenticate and Authorization Headers. I want to reuse this.
I have following use-case: O...
Is it possible to do 301 redirect with Tomcat 5.5 running standalone, not behind IIS/Apache?
...
If I want to politely refuse service on a web site due to temporary overload, the HTTP response 503 Service Unavailable seems appropriate. The spec mentions sending a Retry-after header with the 503.
Is there any point? Does Retry-after affect anything? Do browsers pay any attention to it?
...
My reCaptcha is now implemented into my signup process using ajax..
Currently no matter what is typed in the captcha text field it never validates. It just keeps giving me new words to type in.
I've figured it's because I need to test if the user entered the right captcha answer. I need to send a POST request.
I have no idea how to do...
a.swf is loaded in a.html which is hosted at http://www.a.com/a.html.
I want to know, if user browses http://www.a.com/a.html, in actionscript, can I get the http request URL? In this example I want http://www.a.com/a.html.
...
I have a .NET web applications which uses a lot of javascript. The .aspx and the .js files go hand-in-hand together.
Problem: The .aspx files are always up-to-date on the client (not cached) but the .js files might well be cached. This is even a problem if the files are only cached for one session since users are spending many hours on ...
Hello stackers,
I am building an API, one of its feature is the use of HTTP POST Hook calls triggered on particular actions.
Without taking the time to set a locale route to be the target of the POST call I was looking for an online service showing live POST to a given URL or some other way of testing POST hooks in my code.
Any advice...
According to this great article about HTTP uploads by Scott Hanselman, the browser typically sends a file name with the file's contents. Can I rely on the file name always being transmitted or do I have to give the user the option to enter a name if none was submitted? (If a name was submitted I do not want to prompt him for a specific r...
I am trying to make an automated test/load test on a Silverlight based webapp. AFAIK, Silverlight uses WCF to make web service calls to the server. Instead of trying to make those web service calls, currently I am considering capturing all http traffic between the browser and the server (using a proxy) and replaying that using a script (...
When did people start using UTF-8 in files encoding and HTTP Content-Type headers? Since all web servers, OSes, text editors and browsers support it today, when did it become "compatible" between these?
...
I am trying to call an Axis2 web service using a code like:
stub = new MyServiceStub("http://server/app/services/MyService");
stub.ping();
Stubs/skeletons are generated with codegen. I can interact correctly with the web service from other clients (even something low level written with SAAJ) but not from a stupid stub call.
I am gett...
I'm developing an android video uploading app and uploading large amounts of video is a problem, I get different type of exception sometimes (host not resolved, pipe broken), I do a multipart POST but I have a feeling if I upload chunk of bytes one at at time that'll increase upload speed as well as solve connection timeout and these typ...
How would one go about setting timeouts for each REST API method on the server side. For example I have certain web service methods that upload images and I want to increase the timeouts for these methods compared to ones that have lower http payloads.
Architecture I am dealing with: haproxy, nginx, tomcat
...
Is there a web server library for F#, similar to SimpleHTTPServer in Python?
Installing a full server like IIS is overkill for what I want, which is a simple application that can be queried using a web browser, effectively using HTTP as a monitoring method. Ideally, a request to the address /engines/id/state would map to a function get_...
Hey Everyone,
I didn't know if anyone here has had experience with the gtm-http-fetcher provided by google. I am specifically looking to modify the HTTP headers in a request. Any help or examples would be appreciated.
-Pat
...
Dear All:
I would like to convert this bash script:
#!/bin/bash
if ! [ $# == 2 ]; then
echo Usage: update-module admin-password module-file
exit 1
fi
if ! [ -f $2 ]; then
echo Error: module file $2 does not exist
exit 1
fi
curl -c /tmp/cookie.txt -d uname=admin -d pw=${1} http://localhost:8080/openmrs/loginServlet
curl -b /...
enter code hereHi,
I am trying to upload a file with Java using PUT, server does Digest authentication. I want to keep it lean, so I try to use HttpURLConnection.
public void putData(String path, byte [] data) throws IOException, MalformedURLException {
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthenticat...