Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
PHP i CURL

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
srzi



Joined: 07 Dec 2004
Posts: 37

PostPosted: 07.12.2004 18:36    Post subject: PHP i CURL Add user to your forum ignore list Reply with quote

Kako da namjestim CURL da mi se ponaša kao i web browser kada čitam određenu datoteku s nekog weba?
Želim čitati datoteke i prebacivati ih na neki drugi server bez posredništva, a da mi CURL prati i redirekciju. Dakle, ako imam direktni link kao skriptu www.nekiurl.com/skripta.asp?id=555 koji mi izbaci download određene datoteke, kako napraviti da mi CURL naredba na kraju dobije istu tu datoteku i da skripta misli da je to zatražio browser?

Eh da, zaboravio sam napomenuti da je problem što ono što želim 'skupiti' ne ide preko location-a već <meta refresh>, pa ne znam kako onda izvesti to.

Naravno da običan redirected transfer radi kako treba.
Back to top
View user's profile Send private message
srzi



Joined: 07 Dec 2004
Posts: 37

PostPosted: 08.12.2004 02:49    Post subject: Add user to your forum ignore list Reply with quote

Nitko ne zna? Crying or Very sad
Back to top
View user's profile Send private message
-polygon



Joined: 25 May 2004
Posts: 537
Location: Zagreb

PostPosted: 08.12.2004 02:59    Post subject: Add user to your forum ignore list Reply with quote

Ne.
Back to top
View user's profile Send private message
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 08.12.2004 03:04    Post subject: Add user to your forum ignore list Reply with quote

zna Smile .. pa nije problem neki....
povuci stranicu i ono sta dobijes parsaj i nadji di pise <meta refresh>. izvuci url fajla koji oces kopirat i pozovi ga opet sa curl naredbom pa ces dobit fajl.
provjerit mozes headere svega sta dobijes i po tome ces znat jel html, fajl ili nesto trece.

_________________
Digital Genetics | Koote | Nuspojava
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
-polygon



Joined: 25 May 2004
Posts: 537
Location: Zagreb

PostPosted: 08.12.2004 03:06    Post subject: Add user to your forum ignore list Reply with quote

Daj nemoj mu reč ziher mu treba za krađu sadržaja s drugog sajta. Laughing
Back to top
View user's profile Send private message
edgar



Joined: 28 Dec 2003
Posts: 916
Location: Pred monitorom

PostPosted: 08.12.2004 03:18    Post subject: Add user to your forum ignore list Reply with quote

-polygon wrote:
Daj nemoj mu reč ziher mu treba za krađu sadržaja s drugog sajta. Laughing


mozda to je neki MC? Laughing Cool
lol
salim se

_________________
Digital Genetics | Koote | Nuspojava
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group