Tagged Questions
-1
votes
1answer
15 views
How do I convert this curl request to Apache HttpClient java code?
I'm trying to send this in java:
curl -H "Content-Type:application/json" -XPOST 'http://www.foo.com/foo' -d '{"rootURL": "http://www.subway.com"}'
Here's the code I have:
HttpClient client = ...
0
votes
2answers
21 views
HttpURLConnection recieving a 405 but service is completed
I have a servlet that extends HttpServlet in an apache tomcat environment.
It has a doPost override.
I am trying to access via an HttpURLConnection with setDoOutput = true.
The client gets a 405 ...
0
votes
0answers
10 views
git 403 error in windows
software visions in my environment
git version 1.8.3.msysgit.0
apache version httpd-2.2.25
I create bare git repositories in Repositories folder
I configure git with apache in my windows ...
2
votes
2answers
40 views
php alternative to explode
<?php
$URI_parts = explode('?', $_SERVER['REQUEST_URI'], 2);
echo 'http://' . $_SERVER['HTTP_HOST'] . $URI_parts[0];
?>
I've read that explode was rather heavy on resources, and I was curious ...
0
votes
1answer
12 views
Django (mod_wsgi) - HttpBasicAuthentication using view decorator - AttributeError
I'm writing a small app. I wish to use a view decorator I found.
This here is the snippet, and this is a post describing its usage.
I have an Apache server (2.2) running, and Django is up-to-date.
...
-1
votes
0answers
6 views
Redirect to https and keep get array variables
I have a page on my server that is getting a get array in the URL. Is there an easy way to setup a global apache redirect to enforce https that would keep that get array?
0
votes
1answer
14 views
XML to Google Map Markers
I am using Xampp Apache Server for this project. Basically the project is turn the CSV into an XML document using XMLHttpRequest to loop through the XML document, extract the attributes(such as: lat, ...
1
vote
0answers
16 views
How to load rdf data to bigdata using nanosparqlserver
I have downloaded bigdata.war and have deployed it using sesame HTTP API. Now I am not getting as to how should I load rdf triples/provenance with triples to bigdata using nanosparqlserver? I am using ...
0
votes
2answers
15 views
Who knows which files should be included in a website?
When the browser requests a website, any website from a HTTP server, which of the two parses the site's content in order to know which other files need to be included on the webpage?
What I mean is ...
0
votes
2answers
40 views
Convert HttpResponse to byte array
I have
HttpResponse response = httpclient.execute(httpget);
my method can transfer byte[] over sockets on device and PC, so how can i convert HttpResponse into byte[] and than back to ...
0
votes
3answers
52 views
server doesn't respond on POST Request with CURL + PHP
I have a simple PHP Script, that uses CURL to send a HTTP Post Request to a remote server.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://91.250.77.10/test.php');
curl_setopt($ch, ...
0
votes
0answers
24 views
Unable to login when redirected from https to http
I have a portal which runs on https. I created a link to a http portal from there. Now the problem is when I redirect from https portal to http portal using hyperlink, I am unable to login.
When I ...
1
vote
1answer
28 views
Making HTTP request from an apache2 module (c++)
My apache2 module written in c++ works just fine, it handles "page.xyz"-like requests from browser clients, and it can return the appropriate result.
What I need now is to use my module as a client ...
0
votes
0answers
6 views
HTTP Error 401 with proper authentication
Having Linux server, running Apache CentOS, in one of my directories I set in .htaccess file authentication requirements.
When I'm accessing index.html file, authentication dialog is open and ...
0
votes
1answer
15 views
one server many http domains and one https domain
I haven't been able to solve an issue with my server:
I use a linux server, Debian 7.0 distro.
I am hosting many different domains, all except one, are plain http domains which I can easily redirect ...
1
vote
0answers
23 views
http requests from certain users have query string that breaks cache
I have a simple php intranet web application. Now certain users have difficulties in following a trivial link. They say it opens a blank web page and no content is displayed.
For most users and me it ...
0
votes
1answer
17 views
HTTP POST/PUT files with headers that are guaranteed to be returned on GET operations
I would like to POST/PUT files on a web server with certain HTTP headers, and have the web server return those headers on each GET requests for those files.
Is there a way included inside the ...
1
vote
0answers
35 views
How to allow Content-Type header on ubuntu apache
I have an Ubuntu server box with apache installed. I'm making a simple web app that keeps track of online friends and let's the user interact with them. I use Commmunigate Pro as a server platform for ...
1
vote
1answer
59 views
Why does $_SERVER[“SERVER_PROTOCOL”] show HTTP/1.0 when the client spoke HTTP/1.1
I'm trying to know the HTTP version the user used to connect to my server. The code at http://test.yccau.com (PHP 5.3.26 and Apache 2.2.24) looks like this:
<?php
echo ...
0
votes
1answer
31 views
how a web server(apache) handles multiple HTTP requests, on the code level
Hope this is not something obvious, just want to clarify some things I am not totally sure about. I got this question while watching a tutorial on how to implement caching. There is seems that just ...
0
votes
0answers
10 views
How to send a post request in specified chunks over a period of time?
I am trying to use the Apache http library to send a post request to a server. I want to simulate real time audio input to the server. For instance if an audio file is 3 seconds long I want to use the ...
1
vote
0answers
15 views
apache, mod_reqtimeout and Keep-Alive
I am trying to test an Apache module. I'm using a python script that opens an HTTP connection and sends several thousand json packets at the server. Each packet is an individual request. The problem ...
0
votes
0answers
6 views
SSL Apache : error while run symfony project
i have download symfony 2.3 code from another server and installed in my system having xampp windows xp OS .but it show the error while run the project in browser .i run the project in http:// and ...
0
votes
1answer
54 views
RewriteRule on Debian to shorten an URL
I'm trying to write a RewriteRule to shorten the Monitorix URL like this:
http://10.0.11.11:8089/monitorix-cgi/monitorix.cgi?mode=multihost.all&graph=all&when=1day&color=black
to like: ...
0
votes
0answers
24 views
PHP background process without ignore_user_abort
There is the situation: a regular Apache server, HTTP request via file_get_contents() from php with stream context with timeout set to a low value (5 seconds ie.). The time limit from the called php ...
0
votes
0answers
20 views
protocall-less URIs getting redirected and throwing errors in LAMP stack
I've been actively using the protocol-less URLs for pretty much all external content lately and everything has been working great. I recently decided to start getting alerts for all 404s from my ...
0
votes
0answers
35 views
How to make Apache accept requests, without waiting for client to recv responses?
I wrote a simple socket send routine that sends multiple HTTP requests to apache, essentially logging some data into database (WinSock TCP/IP->Apache->PHP->MySQL). I send HTTP POST request, wait for ...
0
votes
1answer
33 views
HTTP 400 when trying to send POST request via SSL
I'm trying to send a POST using HttpWebRequest to log into a Struts-based web site, and I keep getting an HTTP 400 - Bad Request back no matter what I try. I'm doing this from an .aspx page. Here is ...
0
votes
1answer
26 views
Weird Java error with new DefaultHttpClient()
Getting the following error from my Bukkit plugin, for some reason. Line 58 of UpdatePlayer.java, where the error is starting, is HttpClient httpclient = new DefaultHttpClient();
2013-07-06 21:22:28
...
-2
votes
0answers
11 views
404 error makes Apache HTTP Server stop
If I enter an invalid webpage extension on my website such as www.mydomain.com/fnjrnnj.php the Http Apache Server will spit out an error and Apache will completely stop working until I reboot it.
The ...