Questions tagged [postfile]
10 questions
75
votes
6 answers
Get page output with curl --fail
Calling curl without parameters, i get the page output, even with an http status code = 404:
$ curl http://www.google.com/linux;

Thom Thom Thom
- 1,279
- 1
- 11
- 21
1
vote
1 answer
POST file as binary body using CloseableHttpClient Java
I post a file using form-data but file is uploading corrupted. I need to post it as binary. How can I do it in Java using HttpClient?
"Content-Type": "application/octet-stream"

Sahi Repswal
- 190
- 3
- 12
1
vote
0 answers
Empty excel file is uploaded in JavaScript
I'm trying to upload and download the excel file in a single click operation. I'm calling two APIs in a single operation. The download operation is working fine. But during file upload, an empty excel file is being uploaded with the exact file-name.…

Chitraveer Akhil
- 147
- 1
- 5
- 18
1
vote
2 answers
How to send image from App Inventor to a java web service that uses FormDataParam
I've created a java web service that uploads an image to a folder. It works fine from a html form, but when i tried to send the image from app inventor using PostFile
I get error 1104, which as I read means that either there's a problem with the…

m.rnry
- 11
- 3
1
vote
1 answer
Stata - postfile error
Why do I get a "invalid name" (see last line)?
tempname vector
postfile `vector' beta_lag beta_const ///
se_mvalue se_const ///
using vettore, replace
xtreg Perf lag if t>=396 & t<=408
post `vector' (_b[lag]) …

Giuseppe
- 518
- 10
- 22
1
vote
1 answer
Stata. How to post a matrix of by-sort? Or how to return values of a matrix?
I have the following initial.dta data set:
obs. ID city salary
1 123 Normal 100
2 124 Paris 120
3 125 NY 130
4 122 .a 155
5 120 Paris 100
6 128 Chicago …

CHEBURASHKA
- 1,623
- 11
- 53
- 85
0
votes
1 answer
How to get responsetext from a Page with Post method using XMLHttpRequest in asp.net?
I have a web page which sends a video file/blob to another web page in the using FormData using POST method and XMLHttpRequest. I want to return the response as string from the Posted URL in calling function. i.e after successfull upload file i want…

SHEKHAR SHETE
- 5,964
- 15
- 85
- 143
0
votes
2 answers
How to make postfile work with both string and numeric variable
I am trying to write a Stata program that does some calculation by an identifier and I wish to make it so that the identifier can be either string or integer.
A grossly simplified version of what I am trying to do is like this:
clear all
*****…

Glen Ng
- 97
- 4
0
votes
1 answer
Send php mail with file asynch
This is really making me crazy.
This is the issue, I have X form with some text inputs and one input file. In my script I do a previous validation and after, send it to x.php file who sent the mail and returns a response, after that the page changes…

Mateo Suarez
- 29
- 7
0
votes
2 answers
Stata: collect scalars (eg test statistics) into one object
This should be very easy but I can't find a good answer:
I want to collect a number of scalars, for example the means of several variables (or regression outputs, or test statistics, or p-values), into one object to be used in plotting or as a…

Jakob
- 1,325
- 15
- 31