Page 2 of 2
Re: Transfer File via HTTP POST?
Posted: Thu Jun 11, 2015 2:31 pm
by alexben14
Thanks Rick, here is the XML Job and attached is the log.
Code: Select all<project name="HTTPS Push" mainModule="Main" version="2.0">
<description>This will Push a file to a HTTPS server using HTTP Post method.</description>
<module name="Main" logLevel="debug">
<https resourceId="${RemoteSource}" version="1.0">
<post uri="${DestinationPath}${fileName}">
<file name="${fileName}" path="${SourcePath}${fileName}" />
</post>
</https>
</module>
</project>
Re: Transfer File via HTTP POST?
Posted: Thu Jun 11, 2015 2:44 pm
by Support_Rick
Alex,
Please review your URI. The attached Error
Code: Select all6/10/15 4:44:08 PM INFO The request made to '/sde/alert/FNS0ACS2/upload/CA_20150610-alert_daily.dat' completed with the status 'HTTP/1.1 404 Not Found'
6/10/15 4:44:08 PM DEBUG Closing connection
6/10/15 4:44:08 PM DEBUG Connection closed
6/10/15 4:44:08 PM ERROR 404 Not Found
6/10/15 4:44:08 PM INFO Finished project 'HTTPS Push'
6/10/15 4:44:08 PM ERROR 404 Not Found
Indicates that it can't find that path/filename on the target system. Thus, the 404 Not Found message.
Re: Transfer File via HTTP POST?
Posted: Thu Jun 11, 2015 2:52 pm
by alexben14
I have reviewed the URI and the path exists. The file should not exits because it is a new file, so it should be uploaded to the folder with that name. Do I need to do something with that ?
Re: Transfer File via HTTP POST?
Posted: Thu Jun 11, 2015 3:03 pm
by Support_Rick
Try something like this instead ...
Code: Select all<https resourceId="${RemoteSource}" version="1.0">
<post uri="${DestinationPath}">
<file name="${fileName}" path="${SourcePath}${fileName}" />
</post>
</https>
Usually "name" is a value like "file" or "filename". It depends on what the prompted value on the https interface gives you. SourcePath & FileName should provide the Path and Name of the file that you're wanting to Post to that location in "DestinationPath"
Re: Transfer File via HTTP POST?
Posted: Thu Jun 11, 2015 3:15 pm
by alexben14
It is replying me with the same error of 404 Not Found. Really weird I think.
Re: Transfer File via HTTP POST?
Posted: Thu Jun 11, 2015 4:44 pm
by Support_Rick
Can you send the updated Job Log run with Debug Mode Enabled?