H hzq200409 Active Member Licensed User Jun 4, 2024 #1 This is what making a correct request with postman looks like.Don't worry about the garbled code in the return, because it's encrypted data.When I tried to make an http request with postbytes, I didn't get the Postman-like garble I expected. It returns no content in the response body except for the status code 200. I tried to talk to the target server programmer, and he said he couldn't decrypt what I was sending. And the bit array I sent is absolutely fine. This is evident in postman. Because the file that postman sends is the bin file that I saved in my code. Now I suspect that the method in httpjob is being used incorrectly. I have tried to copy all the request headers from postman into the postbytes code of httpjob, and still no normal response garble. I was so lost, View attachment 154345 View attachment 154346 View attachment 154347 My problem has been solved. Last edited: Jun 7, 2024
This is what making a correct request with postman looks like.Don't worry about the garbled code in the return, because it's encrypted data.When I tried to make an http request with postbytes, I didn't get the Postman-like garble I expected. It returns no content in the response body except for the status code 200. I tried to talk to the target server programmer, and he said he couldn't decrypt what I was sending. And the bit array I sent is absolutely fine. This is evident in postman. Because the file that postman sends is the bin file that I saved in my code. Now I suspect that the method in httpjob is being used incorrectly. I have tried to copy all the request headers from postman into the postbytes code of httpjob, and still no normal response garble. I was so lost, View attachment 154345 View attachment 154346 View attachment 154347 My problem has been solved.
aeric Expert Licensed User Longtime User Jun 4, 2024 #2 hzq200409 said: Because the file that postman sends is the bin file that I saved in my code. Now I suspect that the method in httpjob is being used incorrectly. Click to expand... Try httpjob.PostMultipart Upvote 0
hzq200409 said: Because the file that postman sends is the bin file that I saved in my code. Now I suspect that the method in httpjob is being used incorrectly. Click to expand... Try httpjob.PostMultipart
H hzq200409 Active Member Licensed User Jun 4, 2024 #3 aeric said: Try httpjob.PostMultipart Click to expand... I've tried.I still don't know how to do those things Upvote 0
aeric said: Try httpjob.PostMultipart Click to expand... I've tried.I still don't know how to do those things
Erel B4X founder Staff member Licensed User Longtime User Jun 4, 2024 #4 I've deleted the message with all the attachments. Upvote 0
H hzq200409 Active Member Licensed User Jun 4, 2024 #5 Erel said: I've deleted the message with all the attachments. Click to expand... Sorry. Is it not allowed to send attachments? Upvote 0
Erel said: I've deleted the message with all the attachments. Click to expand... Sorry. Is it not allowed to send attachments?
Erel B4X founder Staff member Licensed User Longtime User Jun 4, 2024 #6 If there is an attachment limit of 500kb then there is a reason behind it and you aren't expected to split the file into 20 files and upload them. Upload the file to an online file service and post a link. Upvote 0
If there is an attachment limit of 500kb then there is a reason behind it and you aren't expected to split the file into 20 files and upload them. Upload the file to an online file service and post a link.
H hzq200409 Active Member Licensed User Jun 4, 2024 #7 Okay. Thanks for the heads up. It was a foul. Sorry to trouble you with your work. Erel said: If there is an attachment limit of 500kb then there is a reason behind it and you aren't expected to split the file into 20 files and upload them. Upload the file to an online file service and post a link. Click to expand... Upvote 0
Okay. Thanks for the heads up. It was a foul. Sorry to trouble you with your work. Erel said: If there is an attachment limit of 500kb then there is a reason behind it and you aren't expected to split the file into 20 files and upload them. Upload the file to an online file service and post a link. Click to expand...