cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:curl-library Digest, Vol 84, Issue 15

From: ภ่ะกปิ <lixiaohui9219_at_126.com>
Date: Thu, 9 Aug 2012 12:13:46 +0800 (CST)

Hi Daniel Stenberg,I use Wget in the same enviaronment can connect the server and download the data ok. The following is the debug infos when use Wget:~ # ./wget -d --http-user=XXXX --http-password=XXXX http://iptv.tjurk.com:5953 -O 1.ts
Setting --http-user (httpuser) to XXXXXX
Setting --http-password (httppassword) to XXXX
Setting --output-document (outputdocument) to 1.ts
DEBUG output created by Wget 1.12 on linux-gnu.
 
--2011-12-04 08:28:05-- http://iptv.tjurk.com:5953/
Host `iptv.tjurk.com' has not issued a general basic challenge.
Resolving iptv.tjurk.com... 188.165.228.55
Caching iptv.tjurk.com => 188.165.228.55
Connecting to iptv.tjurk.com|188.165.228.55|:5953... connected.
Created socket 4.
Releasing 0x004583a0 (new refcount 1).
 
---request begin---
GET / HTTP/1.0
 
User-Agent: Wget/1.12 (linux-gnu)
 
Accept: */*
 
Host: iptv.tjurk.com:5953
 
Connection: Keep-Alive
 
 
 
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 401 Unauthorized
 
Server: nginx
 
Date: Thu, 09 Aug 2012 03:15:36 GMT
 
Content-Type: text/html
 
Content-Length: 188
 
Connection: keep-alive
 
Keep-Alive: timeout=2
 
WWW-Authenticate: Basic realm="Restricted"
 
 
 
---response end---
401 Unauthorized
Registered socket 4 for persistent reuse.
Skipping 188 bytes of body: [<html>
 
<head><title>401 Authorization Required</title></head>
 
<body bgcolor="white">
 
<center><h1>401 Authorization Required</h1></center>
 
<hr><center>nginx</center>
 
</body>
 
</html>
 
] done.
Inserted `iptv.tjurk.com' into basic_authed_hosts
Reusing existing connection to iptv.tjurk.com:5953.
Reusing fd 4.
 
---request begin---
GET / HTTP/1.0
 
User-Agent: Wget/1.12 (linux-gnu)
 
Accept: */*
 
Host: iptv.tjurk.com:5953
 
Connection: Keep-Alive
 
Authorization: Basic XXXXXXXX==
 
 
 
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 200 OK
 
Server: nginx
 
Date: Thu, 09 Aug 2012 03:15:36 GMT
 
Content-Type: application/octet-stream
 
Connection: close
 
Cache-Control: no-cache
 
 
---response end---
200 OK
Length: unspecified [application/octet-stream]
Saving to: `1.ts'

My question is what should I do if 503 return from server in my app? Thanks!

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-09