- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Transfer of data using Curl in Binary or Ascii
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 02:14 PM
тАО12-02-2008 02:14 PM
Transfer of data using Curl in Binary or Ascii
could you please help how to send the data using cURL command in Binary or in Ascii format to remote server
Below is command format I am using to send data, when I send data the customer not able to view the data,
curl -E certificate:pwd -F "userid=usrname" -F "password=pwd" -F "filedata=@filename" https://host:port
could anyone help me
Thanks
- Tags:
- curl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 02:30 PM
тАО12-02-2008 02:30 PM
Re: Transfer of data using Curl in Binary or Ascii
What kind of file? What kind of data?
>>not able to view the data,
Can you be more descriptive? Is the data corrupted? Does the customer receive an error when he/she tries to open the file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 02:46 PM
тАО12-02-2008 02:46 PM
Re: Transfer of data using Curl in Binary or Ascii
same file when I send using windows, he can view the data
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 03:23 PM
тАО12-02-2008 03:23 PM
Re: Transfer of data using Curl in Binary or Ascii
-B/--use-ascii
Enable ASCII transfer when using FTP or LDAP. For FTP, this can also be enforced by using an URL that ends with ";type=A".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 04:39 PM
тАО12-02-2008 04:39 PM
Re: Transfer of data using Curl in Binary or Ascii
I am using Https not FTP to send files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2008 06:23 PM
тАО12-02-2008 06:23 PM
Re: Transfer of data using Curl in Binary or Ascii
Ok, but without showing us what's in the file
before and after it's transferred, you may
need to find someone with psychic powers to
tell you what happened.
Other potentially interesting data:
cURL version
OS version
HTTPS server software description, version
OS where the HTTPS server is running
Can you transfer the file using a Web browser
instead of cURL, and does that change the
result?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 04:26 AM
тАО12-03-2008 04:26 AM
Re: Transfer of data using Curl in Binary or Ascii
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 06:46 AM
тАО12-03-2008 06:46 AM
Re: Transfer of data using Curl in Binary or Ascii
> or Ascii format using curl command
As mentioned earlier (so far as I know),
HTTPS does not have ASCII and binary modes.
> Other potentially interesting data:
> [...]
Still potentially interesting. Actual
information about the data in the files would
also still be useful. I could speculate on
what the (unknown) Web browser is doing
differently, but seeing actual data would
probably be more helpful than my guesswork.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 06:53 AM
тАО12-03-2008 06:53 AM
Re: Transfer of data using Curl in Binary or Ascii
I try like this
curl -E certificate:pwd -F "userid=usrname" -F "password=pwd" -F "filedata=@filename;type=A" https://host:port
but it is not working could you please suggest me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-03-2008 07:11 AM
тАО12-03-2008 07:11 AM
Re: Transfer of data using Curl in Binary or Ascii
restating what you did (that didn't work) probably isn't going to be much assistance.
OSes involved, s/w versions and so on might be helpful. examples of what you mean by "can't read" (actual data / results).
you say it works from windows, but not from unix. is the destination windows? is this the ever-popular dos2ux / ux2dos line terminator issue? how would we know as you've provided almost no information