Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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() ...
Dims's user avatar
  • 50.8k
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/...
Alex Cristian R's user avatar
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 ...
F. Henry's user avatar
  • 104
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/...
elcid's user avatar
  • 31
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 ...
Ryan K's user avatar
  • 4,043
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 ...
yukuan's user avatar
  • 541
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. ...
user1884155's user avatar
  • 3,726
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 ...
Siscia's user avatar
  • 1,481
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 ...
topcan5's user avatar
  • 1,707
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. ...
JCS's user avatar
  • 907
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 ...
AspiringDeveloper's user avatar
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 ...
user3120998's user avatar
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 ...
user2313423's user avatar
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, ...
user1291510's user avatar
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. ...
Yuchen Wang's user avatar
  • 1,722
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 ...
william.berg's user avatar
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-...
David Coleman's user avatar
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 ...
Aure77's user avatar
  • 3,209
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 ...
James G's user avatar
  • 249
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 ...
Jdiddy's user avatar
  • 1
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 ...
vivek's user avatar
  • 396