When i test the program on localhost file is upload when I send file directly to php code not to html form and when I comment the:
if ($_FILES['fileFile']['type'] != 'text/xml'){
echo 'Bad content';
exit;
}
But the real problem is diferent the side is code in asp and in my opinion I need emulate a web browser?

Re: Fill the html form

Could be that the ASP site validates the HTTP headers to try and detect abuse. And if the site does that, then it is likely that what you are trying to do here is actually prohibited. But if you're sure that you are not doing anything against the site rules, you likely need to look into setting a proper 'referer' HTTP header.