I add more debug with morbo and MOJO_USERAGENT_DEBUG=1

there is log:

====

-- Blocking request 
(http://myserver:11080/hydra?command=check&txn_id=9&account=210220&sum=10.00)
-- Connect (http:myserver:11080)
-- Client >>> Server 
(http://myserver:11080/hydra?command=check&txn_id=9&account=210220&sum=10.00)
GET /hydra?command=check&txn_id=9&account=210220&sum=10.00 HTTP/1.1
User-Agent: Mojolicious (Perl)
Connection: keep-alive
Accept-Encoding: gzip
Content-Length: 0
Host: myserver:11080


-- Client <<< Server 
(http://myserver:11080/hydra?command=check&txn_id=9&account=210220&sum=10.00)
HTTP/1.0 200 OK

-- Client <<< Server 
(http://myserver:11080/hydra?command=check&txn_id=9&account=210220&sum=10.00)
Server: hpd/1.0.9.2 
Date: Tue, 03 Jun 2014 07:23:00 GMT

<?xml version="1.0" 
encoding="utf-8"?><response><txn_id>9</txn_id><result>5</result><comment>Неверные
 
данные</comment></response>

===

But 
$ua->get($uri)->res;

is 

HTTP/1.0 200 OK
Date: Tue, 03 Jun 2014 07:20:09 GMT
Content-Length: 0
Server: hpd/1.0.9.2

without data.


>  I have web service with strange server (Server: hpd/1.0.9.2), and it 
> always return me  Content-Length: 0 on my request.
>
> my $ua          = Mojo::UserAgent->new;
>> my $res  = $ua->get($uri)->res;
>>
>
> And $res always empty.
>
> But wget ignore this content-length and show me tight document.
>
> How to ignore this in Mojo:Ua ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to