S
sisapinusa
Hello,
I'm perl beginner.
It's quite simple question.
I'm testing below code:
$req = HTTP::Request->new(GET => '/performers/ HTTP/1.1');
$req->header(Host => 'kihong.dev003.ent');
$res = $ua->simple_request($req);
but only I got this:
400 (Bad Request) URL must be absolute
Content-Type: text/plain
Client-Date: Wed, 07 Dec 2005 22:33:22 GMT
Client-Warning: Internal response
400 URL must be absolute
It says it's "internal response", that means it's from perl module
itself.
As you can see in my code, I need to send this HTTP header
GET /performers/ HTTP/1.1
Host: kihong.dev003.ent
So I coded in C language same thing for test, then of course it works
fine.
What's wrong with me? Isn't it simple header?
Please help me out, it's my first step, but I got stuck ;;
Thank you.
I'm perl beginner.
It's quite simple question.
I'm testing below code:
$req = HTTP::Request->new(GET => '/performers/ HTTP/1.1');
$req->header(Host => 'kihong.dev003.ent');
$res = $ua->simple_request($req);
but only I got this:
400 (Bad Request) URL must be absolute
Content-Type: text/plain
Client-Date: Wed, 07 Dec 2005 22:33:22 GMT
Client-Warning: Internal response
400 URL must be absolute
It says it's "internal response", that means it's from perl module
itself.
As you can see in my code, I need to send this HTTP header
GET /performers/ HTTP/1.1
Host: kihong.dev003.ent
So I coded in C language same thing for test, then of course it works
fine.
What's wrong with me? Isn't it simple header?
Please help me out, it's my first step, but I got stuck ;;
Thank you.