Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> 400 bad request gdy z request jest z innych IP
kirkol
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 27.06.2017

Ostrzeżenie: (0%)
-----


Dzień dobry Panowie i Panie,
Jestem zupełnie nowa w dziedzinie i niestety ugrzęzłam w miejscu.
Gdy wysyłam request z localhosta, to wszystko jest OK, ale gdy request jest wysyłany z innego IP, to pojawia się error 400, mimo, że zapytanie jest dokładnie to samo. Sprawdziłam firewalla i nic mnie nie blokuje. Request "nierozumiany" wysyłany jest z mikrokontrolera (mbed).

Czy ktoś się już kiedyś spotkał może z takim problemem lub domyśla się co może być przyczyną?

(IMG:http://oi68.tinypic.com/2hp7qs2.jpg)

Pozdrawiam!
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kirkol
post
Post #2





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 27.06.2017

Ostrzeżenie: (0%)
-----


Łapaj (IMG:style_emoticons/default/smile.gif) Wszystko zakomentowane.

# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
##NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ##ServerName or ##ServerAlias in any <VirtualHost> block.
#
##<VirtualHost *:80>
##ServerAdmin webmaster@dummy-host.example.com
##DocumentRoot "C:/xampp/htdocs/dummy-host.example.com"
##ServerName dummy-host.example.com
##ServerAlias www.dummy-host.example.com
##ErrorLog "logs/dummy-host.example.com-error.log"
##CustomLog "logs/dummy-host.example.com-access.log" common
##</VirtualHost>

##<VirtualHost *:80>
##ServerAdmin webmaster@dummy-host2.example.com
##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com"
##ServerName dummy-host2.example.com
##ErrorLog "logs/dummy-host2.example.com-error.log"
##CustomLog "logs/dummy-host2.example.com-access.log" common
##</VirtualHost>



Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 29.12.2025 - 23:35