Web jsp css question (why can't Chrome be used and not Explo?)

Asked 1 years ago, Updated 1 years ago, 73 views

I created a web page...

Other pages are available, but if you search on the bulletin board and jump on the screen,

It's not coming out (from Eclipse and Explo).

You can search only with special characters or English, but you can't search with Korean.

But everything comes out in Chrome...

What's wrong with this?

Is there a way to get everyone out?

web css jsp google-chrome explorer

2022-09-21 17:24

1 Answers

The important point is "not just to solve the problem, but to know why it doesn't come out."

You returned 400 as an HTTP status value, as it says HTTP 400 on the right side of the browser.

Code 400 occurs when an invalid request is sent.

Then you have to know what's wrong.

The method of sending requests from HTTP is largely GET/POST.

Among them, the method used by the questioner is the GET method. A QUERY string was sent to the URL together.

However, according to the HTTP specification, the URL is supposed to be sent only with ASCII values, but the questioner sent Korean to the query string as word=signature, and received http response status code 400 as a result of sending a request that was out of spec.

Now that we know the cause, we can solve it.

It's simple. You can make Korean into ascii form and ask questions.

You can do it as below.

Stringurl = "Address~";
String encodeURL = URLEncoder.encode(String url, "UTF-8");

If it's bothersome

 The signature is %EC%84%9C%EB%AA%85.

Invoke the value %EC%84%9C%EB%AA%85 in the address instead of 'signature'.


2022-09-21 17:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.