Qued Posted April 13, 2004 Report Share Posted April 13, 2004 Vai php ir kāda funkcija vai kas cits, ar kura(s) palīdzību varētu noteikt content-type resursam, ja dots ir tikai resursa url? Link to comment Share on other sites More sharing options...
bubu Posted April 13, 2004 Report Share Posted April 13, 2004 var dariit taa, ka ar fsockopen veic HEAD pieprasiijumu uz tava resursa URLu un tad izparseet Content-Type lauku aaraa no responses Link to comment Share on other sites More sharing options...
Qued Posted April 13, 2004 Author Report Share Posted April 13, 2004 Haa, tas vareetu tieshaam straadaat. Liels paldies! Link to comment Share on other sites More sharing options...
рпр Posted April 13, 2004 Report Share Posted April 13, 2004 GET pieprasiijums ar socekt funkcijaam ari atgriezj head parametrus saakumaa vienlaiciigi sanjemot gan head, gan visus paareejos datus. Link to comment Share on other sites More sharing options...
Qued Posted April 14, 2004 Author Report Share Posted April 14, 2004 (edited) Pateicos. Tad nu sāku rakāties pa tiem headeriem. Viena "maza" problēma - nekur nevaru atrast, kurā header parametrā tiek padota detalizēta informācija par prieprasījuma mērķi. Cik te paeksperimentēju, "host" ir tikai pats serveris, bet tālāk (ceļš, parametri)? Varbūt kāds zina? [Papildināts] Atradu: GET _urlis_ HTTP .... blablabla... Jautājums tikai, kur beidzas headeri un sākas infa? Edited April 14, 2004 by Qued Link to comment Share on other sites More sharing options...
bubu Posted April 14, 2004 Report Share Posted April 14, 2004 peec headeriem ir viena tuksha rinda un tad saakas dati Link to comment Share on other sites More sharing options...
Recommended Posts