Quantcast
Channel: Tópicos
Viewing all articles
Browse latest Browse all 11336

Get Header

$
0
0
Boa tarde, eu envio via HTTP(POST), um documento/ficheiro, cujo envio também o nome do documento/ficheiro no header do HTTP request. Eu consigo ir buscar todos os atributos do header através da função "$headers = getallheaders();". Até aqui tudo bem, mas eu queria ir buscar apenas o campo "[Name]", mas não estou a conseguir. De seguida segue o meu header: Obrigado desde já. Array ( [Content-Type] => application/x-www-form-urlencoded, multipart/form-data; [Content-Length] => 9615600 [Ua-Cpu] => AMD64 [Name] => C:\Users\ASUS\Desktop\Documentos.zip [User-Agent] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Win64; x64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729) [Accept-Language] => pt-PT [Accept-Encoding] => gzip, deflate [Accept] => */* [Connection] => Close [Cache-Control] => no-cache )

Viewing all articles
Browse latest Browse all 11336

Trending Articles