Transfer File via HTTP POST?
Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
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>
Attachments
1400701194171.log
Job Log with Debug Flag.
(18.85 KiB) Downloaded 814 times
(18.85 KiB) Downloaded 814 times
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
Alex,
Please review your URI. The attached Error
Please review your URI. The attached Error
Code: Select all
Indicates that it can't find that path/filename on the target system. Thus, the 404 Not Found message.6/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
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
Try something like this instead ...
Code: Select all
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"<https resourceId="${RemoteSource}" version="1.0">
<post uri="${DestinationPath}">
<file name="${fileName}" path="${SourcePath}${fileName}" />
</post>
</https>
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
- Support Specialist
- Posts: 590
- Joined: Tue Jul 17, 2012 2:12 pm
- Location: Phoenix, AZ
-
Can you send the updated Job Log run with Debug Mode Enabled?
Rick Elliott
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696
Lead Solutions Consultant
(402) 944.4242
(800) 949-4696