cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

RE: HTTP post with PHP & CURL using basic authentication andfollowingredirect

From: Edin Kadribasic <edink_at_proventum.net>
Date: Thu, 22 Mar 2001 19:57:59 +0100

I get the following output:

# curl -v -v -v -i -L -u "user:pass" -d
"__Click=0&%25%25ModDate=C125696F00328981&SelectManufacturer=3Com&Select
Category=_15kg5d13cd8g6mobkcljmusj940mi0_"
"http://194.68.213.78/se/info.nsf/frontpage/FrontManufacturers?EditDocum
ent&Seq=1"
* Connected to 194.68.213.78 (194.68.213.78)
> POST /se/info.nsf/frontpage/FrontManufacturers?EditDocument&Seq=1
HTTP/1.1
Authorization: Basic [edited ;]
User-Agent: curl/7.7 (i686-pc-linux-gnu) libcurl 7.7
Host: 194.68.213.78
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 112
Content-Type: application/x-www-form-urlencoded
 
__Click=0&%25%25ModDate=C125696F00328981&SelectManufacturer=3Com&SelectC
ategory=_15kg5d13cd8g6mobkcljmusj940mi0_
HTTP/1.1 302 Found
Server: Lotus-Domino/5.0.5
Date: Thu, 22 Mar 2001 18:54:00 GMT
Location:
http://194.68.213.78/se/info.nsf/BySelectedMf?OpenForm&mf=3Com&category=
Connection: close
Content-Type: text/html
 
* Closing live connection (#0)
* Follows Location: to new URL:
'http://194.68.213.78/se/info.nsf/BySelectedMf?OpenForm&mf=3Com&category
='
* Connected to 194.68.213.78 (194.68.213.78)
> POST /se/info.nsf/BySelectedMf?OpenForm&mf=3Com&category= HTTP/1.1
Authorization: Basic [edited ;]
User-Agent: curl/7.7 (i686-pc-linux-gnu) libcurl 7.7
Host: 194.68.213.78
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 112
Content-Type: application/x-www-form-urlencoded
 
__Click=0&%25%25ModDate=C125696F00328981&SelectManufacturer=3Com&SelectC
ategory=_15kg5d13cd8g6mobkcljmusj940mi0_

...
...

--
Edin Kadribasic
UNIX Developer
Proventum.NET 
-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Thursday, March 22, 2001 7:48 PM
To: curl and php list
Subject: RE: HTTP post with PHP & CURL using basic authentication
andfollowingredirect
On Thu, 22 Mar 2001, Edin Kadribasic wrote:
> Yes, I can reproduce the problem on the command line. Curl just gets
> stuck. If I add -i I get a neverending display like:
What if you add -v and -i, does that reveal anything more?
-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-03-22