All Questions
21 questions
0
votes
0
answers
69
views
How to prevent mockserver forward from adding extra headers?
I am redirecting requests to real services with
HiveContextTest(ClientAndServer mockServer) {
this.mockServer = mockServer;
}
...
my test {
mockServer.when(
HttpRequest.request()
...
0
votes
0
answers
170
views
Java servlet redirect [duplicate]
So, i want to forward/redirect a user to /user/dashboard.html if he is already loged in or to /login.html if he is not loged in ONLY when he accesses the root url (in this case http://localhost:8080/...
0
votes
1
answer
321
views
http forward with domain blocking
I'm trying to implement a http forwarding server that supports domain blocking. I've tried
go io.Copy(dst, src)
go io.Copy(src, dst)
and it works like a charm on tcp forwarding. Then I've tried to do ...
0
votes
0
answers
110
views
How can i forward http request to https?
I have an application that work on :
http://XXXXX.it:8080/calendar
But i need to redirect it to
https_//XXXX.it/calendar
I install apache2 and add the certificate on it.
here the info:
etc/apache2/...
0
votes
0
answers
272
views
Rails Get Forward/CNAME Subdomain
I have a Rails app on Heroku that uses subdomains. Let's say that my heroku domain is example.herokuapp.com. I have a domain called myexample.com. I have a second domain called myotherexample.com. I ...
2
votes
1
answer
111
views
Is there a way to forward a page from proxy in nginx?
I configure a reverse proxy in my nginx.conf, and it works very well.
location /foo/ {
proxy_pass http://localhost:5000/;
proxy_intercept_errors on;
proxy_redirect off;
}
and I also ...
0
votes
1
answer
44
views
Forwarding to httpRequest that is not the current HttpRequest
I'm making a Java webapp which uses the Spring 4 framework.
When a user makes any request, if the user is not logged in, I use an interceptor to store this request object inside the user's session. ...
0
votes
0
answers
269
views
Forward HTTP traffic with erlang
I want to write a "smart" load balancer, with "smart" I mean that it should route different request on different servers and ports based on the URL.
As example somehost.com/server1 should go to the ...
0
votes
1
answer
27
views
Spring Return after Validation
I have a page to add a user "/user/userAdd". In GET, i populate a list of Countries. In POST, i validate the User object from the formsubmit. If it has error, i return back to the same page with error ...
0
votes
1
answer
2k
views
Java Spring: Passing a HTTP Request to another webapp and get the response back?
What i want to do is basically pass a HTTP request from one of my spring controllers to another controller which is inside a another webapp running on another server, and get the response back.
...
0
votes
2
answers
607
views
How to create a URL which will direct to another domain?
I have an ecommerce website. I have a help desk website hosted on another domain.
So what I want is to have an URL like this: "http://www.example.com/help" and it will take my customers to my help ...
1
vote
1
answer
578
views
What is the ip address that gets sent when a client makes a request to a website that goes through an ISP
Lets assume that I am one of the software engineers that are working on a website and I am writing this piece of code that does something with the client's ip address.
The http request from the ...
9
votes
1
answer
15k
views
How to forward a request using JAX-RS?
I want to forward a REST request to another server.
I use JAX-RS with Jersey and Tomcat. I tried it with setting the See Other response and adding a Location header, but it's not real forward.
If ...
0
votes
1
answer
217
views
Apache domainname instead of IP
I'm not sure this is even a question to be asked here, but I'll give it a shot anyway.
So I have an ubuntu server, and I recently purchased a domainname.
Now I have forwarded the domain to my IP, ...
1
vote
0
answers
240
views
How to redirect http request to a different URL with nginx?
I need to redirect following URL:
http://www.example.com/product/product-name/1234
to
http://www.example.com/details/product.jsp?pid=1234
Can somebody help me on this? We are using nginx 1.1.19. ...
1
vote
1
answer
1k
views
CherryPy forwarding request to another server
I'm having the same issue as this SO question, but with nginx and CherryPy. I am trying to allow clients to access 192.168.0.4:80/otherpath through GET requests made to 192.168.0.3:80/forward, where ...
0
votes
2
answers
411
views
Web. Some nuances of difference between forward and redirect
I'm starting to learn web-programming. I've read about the difference between forward and redirect. But two questions not fully understood still:
In which case does the process access to a server-...
2
votes
1
answer
2k
views
Apache forward all requests to a specific static file
I am trying to forward (not redirect !) all http requests on my virtual host to a static file.
I would like to fake request by responding same data.
All example that I found redirect me to the ...
0
votes
1
answer
694
views
How to properly forward messages coming from client to Web Server in HTTPS? (Java Proxy Server)
I have a working HTTP Proxy server. it can properly handle website using only HTTP and could also connect to HTTPS website. It can properly negotiate with the client's CONNECT request and start ...
0
votes
1
answer
931
views
From FTP to web server to web client
I'm currently building a web page that will serve customers with files relevant for products they bought from us. The web server is located on a remote web host, but the files I want to serve are ...
1
vote
1
answer
1k
views
How to implement gateway in java
I have to implement a Gateway in java.
I have a servlet that recieves information like the URL to hit and parameters to be passed to that URL.
I need to get the response back from there, make some ...